rayss
rayss

Reputation: 657

SAP Spartacus CORS issue in Firefox private mode

In Firefox's private mode, I've encountered a CORS issue when accessing the basesite API URL CORS:

.../occ/v2/basesites?fields=baseSites(uid,defaultLanguage(isocode),urlEncodingAttributes,urlPatterns,stores(currencies(isocode),defaultCurrency(isocode),languages(isocode),defaultLanguage(isocode)),theme,defaultPreviewCatalogId,defaultPreviewCategoryCode,defaultPreviewProductCode)&lang=en&curr=USD

Tracking protection ON: enter image description here

In our code we just call the OOTB method for to get the basesite data.

protected resolveConfig(): Observable<SiteContextConfig> {
    return this.baseSiteService.getAll().pipe(
    .........
}

However, upon disabling tracking protection, CORS issues cease to occur, and the site loads successfully.

enter image description here

Is this an anticipated behavior, or is there a solution to address it? Your guidance would be appreciated.

Thanks

Upvotes: 0

Views: 123

Answers (0)

Related Questions