Hi Experts,
I'm trying to create simple application (displaying a table in UI5 by consuming OData services created in backend).
While executing the application in browser, I'm getting the below error:
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:61195' is therefore not allowed access. The response had HTTP status code 401.
What I did is as below:
1. Create the OData service in backend (its running successfully, I tried it in gateway client).
2. Develop UI5 application with table in eclipse.
UI5 code as below:
Error: