SAP Knowledge Base Article - Preview

3049566 - How to solve cors origin issue for resource file access

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


CCV1

CCV2

Product

SAP Commerce Cloud 1905 ; SAP Commerce Cloud 2005

Keywords



, KBA , CEC-COM-CPS , SAP Commerce , CEC-HCS-CCAZ-CZO , Customer Zone on Azure , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.