It seems the "requestJira" method from bridge does not support POST method

Hi,

It seems the “requestJira (https://developer.atlassian.com/platform/forge/custom-ui-bridge/requestJira/)” method from bridge does not support “POST” method.

I made a simple request from my custom-ui to '/rest/api/3/search', 'POST' but got:

Screenshot 2021-07-27 at 17.53.09

The link in the image points to: https://api.atlassian.com/ex/jira/25f9fe20-a132-4b38-acfa-e50f0031f18f/rest/api/3/search

Options passed is like: {method: "POST", headers: headers, body: body}

Hi,

Http 415 is usually about the Content-Type header. If you are setting custom headers maybe it is overriding the default: 'content-type': 'application/json'. If you are not already, I would try adding this to your headers.

Yes. thanks. Misinterpreted 415

I had it like this:

let headers = {
    ContentType: 'application/json',
  };

changed to:

let headers = {
    'content-type': 'application/json',
  };

and it works. thanks