SAP Knowledge Base Article - Preview

3442974 - CORS error when searching for products in ASM - SAP Commerce Cloud


When searching for a product in website using an emulated session with ASM, nothing is returned and in the console of the browser a CORS error similar to below one is seen:

  • Access to XMLHttpRequest at ',pagination,sorts&query=:relevance:allCategories:xx&pageSize=xx' from origin '' 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.



  • SAP Commerce
  • SAP Commerce Cloud
  • SAP Commerce Cloud, composable storefront


SAP Commerce Cloud all versions ; SAP Commerce Cloud, composable storefront all versions ; SAP Commerce all versions


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.