cancel
Showing results for 
Search instead for 
Did you mean: 

XS Admin Tool: Add allowed origin error: invalid Allow-From uri value

Former Member
0 Kudos

Hello,

I try to consume an XSOData-Service from another source. I followed this Post:

But when I try to add the server to allowed origins the error message "invalid Allow-From uri value" pops up.

In my JavaScript app the error message "o 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://xxx.yyy.zzz.com:8000' is therefore not allowed access" shows up when I try to load https://abcdefg.hana.ondemand.com/app/services/service.xsodata/$metadata

Accepted Solutions (1)

Accepted Solutions (1)

gowrisankar_m2
Contributor
0 Kudos

i guess you shouldn't include http or https. just use your hostname only.

Former Member
0 Kudos

I tried basically every uri by this point.  Really dont know whats going on..

gowrisankar_m2
Contributor
0 Kudos

just to confirm , you are trying to add the hostname under xsproject package only right? please refer the screenshot.

If you trying to add any of the package which was created under content folder directly, it will not work..

gowrisankar_m2
Contributor
0 Kudos

Did your issue is resolved???

Former Member
0 Kudos

You are a genius!!! It worked.

Thank you again for your help

Answers (0)