Hello there (General Kenobi)!
I’ve seen a few posts about the topic but nothing with definite answer. I think it is due to large spectrum of applications of Jira api’s.
My company is using Jira cloud and I gave myself a task to create a dashboard that will collect data from various sources that the IT department uses such as Jira, Github, Slack, etc…
Naturally I opted for a token based auth because of multiple different api calls the dashboard will have to make. I got my api token and when I try making requests to
https://myCompanyName.atlassian.net/rest/agile/latest/board through Postman (or terminal using curl) I get a nice response. However, when I try making the same request from my React app my request fails before it can ever reach the server. If I start the Chrome browser with
--disable-web-security flag everything works just fine but that is far from optimal. I am using axios npm package for making these requests.
Can anyone give me any tips on how to get this to work and what would be the easiest solution.
- Do I have to whitelist my localhost url to make it work?
- Do I have to make a node server using the atlassian-connect-express to make it work?
- Do I have to opt for OAuth authentication in the end because none of the above will work?
I am sorry if this has been answered in prior topics but I haven’t been successful in finding a good answer yet. Any tips are welcome!
With this being said thanks for your time, stay safe and cheers!