Reputation: 657
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
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.
Is this an anticipated behavior, or is there a solution to address it? Your guidance would be appreciated.
Thanks
Upvotes: 0
Views: 123