Symptom
When making a call to access resource file(like media files, .json, .txt, .glb) from a different domain, you could meet cross-origin issue with below kind of error in the browser console:
| [Error] XMLHttpRequest cannot load *** due to access control checks. [Error] Failed to load resource: Origin *** is not allowed by Access-Control-Allow-Origin [Error] Access to XMLHttpRequest at *** from origin *** has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. |
Read more...
Environment
SAP Commerce Cloud
Product
SAP Commerce Cloud all versions
Keywords
CTTD, cors, XMLHttpRequest, commerce, commerce cloud , KBA , CEC-SCC-PLA-PL , Platform , How To
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.
SAP Knowledge Base Article - Preview