You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

CORS error while calling Rest API using JS

Accepted answer
edited Jan 13, 2024 9:16AM in Visual Builder 1 comment


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/{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):


Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!