跨网域问题 [英] Cross domain issue

查看:72
本文介绍了跨网域问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

必须使用ajax从共享点页面调用交换服务(ews/exchange.asmx).

have to make call to exchange service(ews/exchange.asmx) from sharepoint page using ajax.

但是获得对预检请求的响应未通过访问控制检查:所请求的资源上没有'Access-Control-Allow-Origin'标头."

But getting "Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource."

推荐答案

请查看以下文章,

Please check below articles, 

https://spring.io/guides/gs/rest-service-cors/

https://spring.io/guides/gs/rest-service-cors/

https://docs.microsoft.com/zh-cn/aspnet/web-api/overview/security/enabling-cross-origin-requests-in-web-api

https://docs.microsoft.com/en-us/aspnet/web-api/overview/security/enabling-cross-origin-requests-in-web-api

https://www.codeproject.com/Tips/1109392/Response-to-Preflight-Request-Doesnt-Pass-Access-C

https://www.codeproject.com/Tips/1109392/Response-to-Preflight-Request-Doesnt-Pass-Access-C

https://stackoverflow.com/questions/27504256/mvc-web-api-no-access-control-allow-origin-header-is-present-on-the-requested

https://stackoverflow.com/questions/27504256/mvc-web-api-no-access-control-allow-origin-header-is-present-on-the-requested

https://www.codeproject.com/Articles/1084745/Fix-To-No-Access-Control-Allow-Origin-Header-is-Pr

https://www.codeproject.com/Articles/1084745/Fix-To-No-Access-Control-Allow-Origin-Header-is-Pr

致谢

Prasad Tandel

Prasad Tandel


这篇关于跨网域问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆