Hello everyone. This is my first time using a Jira Rest API, and I'm trying to integrate it into my Flutter project. I am using basic authorization for Jira. All of my code is working correctly, but when I attempt to publish my project, I encounter the following error. Could someone please help me with this issue?
Looks like this has already been answered in the below thread within the Atlassian developer community, so might be worth checking this out:
https://community.developer.atlassian.com/t/cors-error-with-rest-api/27354
Essentially though, CORS is an enforcement your browser is enforcing, because your browser notes that the domain for the URL you're requesting does not match the domain for the URL you're currently on.
My assumption is that you're trying to execute this from a client-side instance, rather than using some kind of backend programming language, hence the above. So the answer would be to instead use something like Python, Java, etc that runs on a server.
Oh, I see. Thank you very much for the explanation!
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.