Symptom
- Cross-Origin Resource Sharing (CORS) issue preventing certain types of requests to the OData service from functioning correctly.
- HEAD requests are processed successfully, but GET and POST requests fail consistently.
- Error message: "Access to XMLHttpRequest at 'https://hostname/sap/opu/odata/sap/ODATA_SERVICE_SRV/EntitySet?$format=json' from origin 'https://hostname' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."
Read more...
Environment
- SAP Gateway
- Odata framework
- Fiori Launchpad
Product
SAP Gateway all versions
Keywords
cors, cors issue, odata service, cross-origin resource sharing, access-control-allow-origin, sap fiori, sap s/4hana, failure, post , odata on backend, sap gateway foundation, http response headers. , KBA , OPU-FND-CCL , Consumer Connectivity Layer , Problem
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