Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2720

Re: Unable to consume ODATA service in UI5

$
0
0

Deni,

 

the error - response for preflight... is due to the fact that the application and the service are in 2 different (sub) domains - even if they are local as in localhost, they are considered not to be in the same place. I faced this issue with a .net Odata service I was trying to consume and it seems, in my case, I was able to GET data out of the service but when I tried PUT/POST/DELETE it wouldn't work as the service sends OPTIONS method first to the service and then if accepted - due to the CORS policy - then it would send the correct method. I know that is the cause of your error. I am not sure if you are able to GET data at all or you also face the same issue as me when trying to use a method other than GET.

 

also, try to deploy and see if that may work.


Viewing all articles
Browse latest Browse all 2720

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>