简体   繁体   English

Restfull服务中的CORS

[英]CORS in Restfull Services

I am trying to call RESTfull services on my localhost with a header information, its return CORS error. 我试图用标头信息在我的本地主机上调用RESTfull服务,它返回CORS错误。 If call RESTfull service without header information, its return successfully result. 如果在没有标题信息的情况下调用RESTfull服务,则返回成功。 I am using AngularJS v1.2.15. 我正在使用AngularJS v1.2.15。

you really need to add more info. 您确实需要添加更多信息。 Is your backend MVC, WEB API, or are you accessing an external API? 您是后端MVC,WEB API,还是正在访问外部API? What headers are you sending? 您要发送什么标题? We cant read minds so you need to tell us stuff... 我们无法读懂思想,所以您需要告诉我们一些事情。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM