REST Call To listSites In Preview Fails With 401 Unauthorized

(Doc ID 2309413.1)

Last updated on SEPTEMBER 20, 2017

Applies to:

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

Symptoms

When widget script uses the ccRestClient JavaScript function to access the list of sites it works on storefront servers, but on the Admin's preview of the store pages, the ccRestClient call to listSites fails with a 401 Unauthorized HTTP response.

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