My Oracle Support Banner

Wishlist Not Working Resulting CORS Error (Doc ID 2920226.1)

Last updated on SEPTEMBER 07, 2023

Applies to:

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

Symptoms

On: 22.3.4 version, Open Storefront Framework

Wishlist not working and resulting CORS Error. Same configuration working on the Dev environment.

When the user clicks on Add to wishlist button, in the network tab we are getting a CORS error for this API :-https://social-test-us.occa.ocs.oraclecloud.com/swm/rs/v1/sites//spaces

ERROR
-----------------------

Request URL: https://social-test-us.occa.ocs.oraclecloud.com/swm/rs/v1/sites//spaces
Request Method: OPTIONS
Status Code: 404

Console Error

Access to fetch at 'https://social-prod-us.occa.ocs.oraclecloud.com/swm/rs/v1/spaces' from origin 'https://www.abc.com' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'null' that is not equal to the supplied origin. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Cause

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
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.