Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cross-Origin Issue with Jira Cloud API: Nginx Reverse Proxy Not Working

chenhui Hu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 19, 2024

 

 

Hello,

I am trying to call the REST API rest/api/3/user/search?query=${email} from the front-end, but I am encountering cross-origin issues. I've attempted to use an Nginx reverse proxy for Jira Cloud, but I'm getting a 404 response.

Is it possible to use an Nginx reverse proxy with Jira Cloud? If not, what other solutions are available to solve cross-origin issues apart from using a reverse proxy?

Thank you for your help!

1 answer

1 vote
marc -Collabello--Phase Locked-
Community Champion
September 19, 2024

You can't just put a reverse proxy before Jira.  This won't work.

However you can proxy API requests through a proxy.  For this to work, you'd need to sort out an authentication method for the proxy.  One possibility might be Basic Auth: https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/

chenhui Hu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 20, 2024

My frontend is currently accessing the Nginx proxy server, which then forwards requests to Jira using the api token, but it's not working.

Could you please explain the difference between placing a reverse proxy in front of Jira and using a proxy to forward API requests?

POPO-20240920-161849.png

marc -Collabello--Phase Locked-
Community Champion
September 20, 2024

A reverse proxy in front of Jira will proxy all http traffic, whereas an API proxy will only proxy the individual API calls.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events