Hi Karol,
I am trying to access a OData service (HANA) using the 'PostResponseParser' component and I have been getting the following error:
XMLHttpRequest cannot load http://myhost:8000/xxxx/xxxxx/xxxxx.xsodata/xxxx. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://myIP:55555' is therefore not allowed access.
And this is how I have defined .xsaccess file (I dont have access to XSADMIN rights on HANA).
{
"exposed" : true,
"authentication" : {"method": "basic"},
"cors":{"enabled":true, "allowMethods":["GET","POST","HEAD","OPTIONS"],"allowOrigin": ["*"],
"allowHeaders": [
"Accept",
"Authorization",
"Content-Type",
"X-CSRF-Token"
],
"exposeHeaders": [
"x-csrf-token"
] }
}
What settings do I tweak to make it work?