Cross origin requests are only supported for protocol schemes: http

 ̄綄美尐妖づ 提交于 2019-12-02 14:15:12

I agree with Charlietfl. If you have apache and/or IIS, it should be a pretty quick test to validate that this fixed it.

If you are new to web-server's in general, have no fear they have applications like Xampp that setup your entire LAMP stack from one executable file.

Since you are authenticating into your own server, you may(not) run into this, but I have had trouble with running local RESTful applications, and pending what you are using on the backend I needed to do something like this: setHeader('Access-Control-Allow-Origin', '*'); to the header of my response.

Obviously you don't want something like this if you decide to create some sort of enterprise class web service, but for local testing, that generally gets around random CORS issues I have ran into.

Good luck with your web app!!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!