CORS Error: "No 'Access-Control-Allow-Origin' header is present on the requested resource"
(Doc ID 2333853.1)
Last updated on AUGUST 26, 2020
Applies to:Oracle Commerce Cloud Service - Version N/A and later
Information in this document applies to any platform.
1. When attempting to make REST calls from a different domain to a /ccadmin/v1/login endpoint, you receive a CORS error. For example, using a localhost domain, you would receive the error:
Attempts to accommodate this PUT domain with "http://localhost:8080" in the allowedOriginMethods property of the sites API does not help.
2. In case of calling out to third parties services from Commerce, this error message in displayed in the browser console. It may not blocked when making the same call in postman, but it is blocked in any browser within OCC due to violation of CORS policy.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document