on 2023 Dec 19 10:12 AM
Hi,
I am currently attempting to call Jira's API from SAP Build Apps, but I am getting a CORS error when calling the API with an API Token.
The call succeeds when executed from postman in the same manner.
Does anyone know of a solution?
Error:
Error: TypeError: Failed to fetch. Does the server allow CORS?status: undefined
Resource settings for Get collection (GET)
-------------------
Resource URL: https://xxxxxxxxx/rest/api/3/issue/KAN-xx
Relative path: undefined
Best Regurd,



Request clarification before answering.
kaori_oiwa
you need to user SAP BTP Destination in that case to avoid CORS or develop nodejs api binding using cors npm module.. you can get a lot of information in google or search in blogs.sap.com for the next step
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, the easiest thing is to add Jira api as BTP destination.
Postman works because it is not a browser, but browsers do check the access-control-allow-origin header from the response and unless it is set to accept all (*) or your domain specifically, the response is rejected.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.