Skip to Content
avatar image
Former Member

CORS issue accessing xsodata

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

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

    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

    Add comment
    10|10000 characters needed characters exceeded