on 04-13-2021 7:25 AM
Hi All,
I am trying to call a non-sap api using ajax which works fine from Cloud(setting a destination on SCC/BTP) but not when its deployed to on-premise FLP.
We added 'Access-Control-Allow-Origin' header response parameter in service API but still no luck.
Is there any issue in UI5 that it requests a preflight call internally?
Let me know if anyone had similar issue.
Thanks in advance!
Regards
Kriti
Hi krbafna,
As far as I know, the Access-Control-Allow-Origin header must be set in the main request, i.e. in the first request (index.html / launchpad.html).
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
If you use a WebDispatcher in your onPrem setup, it might be possible that it proxies the request.
Regards
Simon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.