Symptom
When searching for product in website using an emulated session with Assisted Service Module (ASM), nothing is returned and in the console of the browser a CORS error similar to below one is seen:
Access to XMLHttpRequest at 'https://endpoint.yourSubscription-public.model-t.cc.commerce.ondemand.com/occ/v2/electronics/products/search?fields=products,pagination,sorts&query=:relevance:allCategories:xx&pageSize=xx' from origin 'https://yourWebsite.com' has been blocked by CORS policy: Request header field sap-commerce-cloud-user-id is not allowed by Access-Control-Allow-Headers in preflight response. |
Read more...
Environment
- SAP Commerce
- SAP Commerce Cloud
- SAP Commerce Cloud, composable storefront
Product
SAP Commerce Cloud all versions ; SAP Commerce Cloud, composable storefront all versions ; SAP Commerce all versions
Keywords
hybris, ccv2, cross origin domain setup, spa, spartacus , KBA , CEC-SCC-COM-AS , Assisted Services , CEC-SPA , SAP Commerce Cloud Spartacus , Known Error
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.