CORS Error: "No 'Access-Control-Allow-Origin' header is present on the requested resource"

(Doc ID 2333853.1)

Last updated on JANUARY 09, 2018

Applies to:

Oracle Commerce Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

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:

"XMLHttpRequest cannot load. Response to preflight request doesn't pass access control check:No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access."

Attempts to accommodate this PUT domain with "http://localhost:8080" in the allowedOriginMethods property of the sites API does not help.

 

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms