SAP Knowledge Base Article - Public

2914132 - Error: "Access to XMLHttpRequest"..." Has Been Blocked by CORS Policy"

Symptom

You are trying to access the endpoint from your Fiori/UI5 app using an OData Model, while your app is running on a localhost. An error similar to the following one occurs:

Access to XMLHttpRequest at ‘https://services.odata.org/V2/OData/OData.svc/$metadata’ from origin ‘http://localhost:61264’ has been blocked by CORS policy

Environment

SAP Cloud for Customer

Resolution

C4C OData frame-work does not support CORS

See Also

See alternative options as mentioned in the blog: CORS and Fiori/UI5 – Everything you need to know

Keywords

does not work, problem, not possible, denied, system, reach , KBA , LOD-CRM-INT-API , OData API (C4C Only) , Problem

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions