Skip to Content
0

CORS issue accessing xsodata

Nov 21, 2016 at 04:54 AM

212

avatar image
Former Member

Hi,

I'm getting following error while accessing Cross Origin Resource:

and XHR as follows

I did the CORS configuration in .xsaccess file as follow:

and also in XS Admin console as follow:

and following is the code from SAPUI5 manifest.json:

I don't know what I'm missing here. Kindly help me on this.

Thanks and Regards,

Binay Biswakarma

origin.jpg (22.5 kB)
xhr.jpg (37.9 kB)
xsaccess.jpg (37.5 kB)
security.jpg (45.4 kB)
cors.jpg (53.7 kB)
custom.jpg (25.1 kB)
ui5.jpg (15.2 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
avatar image
Former Member Nov 21, 2016 at 05:57 AM
0

Solve it :),

We've to maintained the whatever request header

in the XS Admin Allowed Headers configuration:

we can get the list of Requested headers in browser Developer Tools->Network tab->Select the xhr type and then header

Thanks and Regards,

Binay Biswakarma


Share
10 |10000 characters needed characters left characters exceeded