'access-Control-Allow-Origin'标头出现在请求的资源上 [英] 'Access-Control-Allow-Origin' header is present on the requested resource
本文介绍了'access-Control-Allow-Origin'标头出现在请求的资源上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们在一天之前遇到了问题。我们只是从ajax post方法调用Web API并发布XML数据,但它给出了错误403(Forbidden)。在请求的资源上没有'Access-Control-Allow-Origin'标头。 Origin请给我们建议如何访问和获取XML数据的响应?
We have faced a problem before a day. we just call a web API from ajax post method and post XML data but its give us error 403 (Forbidden).No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin please give us suggestion for how can we access and get response in XML data?
推荐答案
这篇关于'access-Control-Allow-Origin'标头出现在请求的资源上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文