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!
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/
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A reverse proxy in front of Jira will proxy all http traffic, whereas an API proxy will only proxy the individual API calls.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.