Access-Control-Allow-Origin Error At Android 4.1

后端 未结 3 875
心在旅途
心在旅途 2020-12-01 08:39

I have problems with Access-Control-Allow-Origin at Android 4.1

In my application i have some local HTML files and Javascripts which i was using to fetch data from w

3条回答
  •  甜味超标
    2020-12-01 09:06

    Are your web services hosting from the same domain ? I used to get this error while making an ajax call to a service under a different domain. If you have control on the web service, you can set Access-Control-Allow-Origin: * in the header, (although this way is not a secure way of doing so.)

提交回复
热议问题