CORS error while calling Rest API using JS
Summary:
Hi experts,
I've been getting Cross Origin Resource Sharing error: PreflightMissingAllowOriginHeader while calling Oracle Fusion Rest API using VBCS JS.
Content (please ensure you mask any confidential information):
I am calling Oracle Fusion Rest API using JS, specifically this API: /fscmRestApi/resources/11.13.18.05/itemsV2/{itemsV2UniqID}/child/ItemAttachment
The reason why it is called from JS and not Service Connection is to call using Bearer token as Authorization.
I'm getting CORS error when I'm calling this Rest API from VBCS JS, although it can call successfully from Postman.
Please guide me through this. Thanks.
Version (include the version you are using, if applicable):
Tagged:
0