SharePoint Online REST获取列表项错误对预检请求的响应未通过访问控制检查:请求的资源上不存在“Access-Control-Allow-Origin”标头。因此不允许原点'null'访问。响应有HTTP [英] SharePoint Online REST Get List item error Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP

查看:216
本文介绍了SharePoint Online REST获取列表项错误对预检请求的响应未通过访问控制检查:请求的资源上不存在“Access-Control-Allow-Origin”标头。因此不允许原点'null'访问。响应有HTTP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试通过REST GET方法按HTML页面访问列表项时出现以下错误(我没有在线运行SharePoint页面)。在一段时间之前工作正常,但现在给出以下错误。当把html放在CEWP中它可以工作正常但
当在浏览器中单独运行页面时它会给出以下错误。

I am getting below error when try to access a list item by HTML page by REST GET method  ( I have not running the page from SharePoint online). which work fine before some time but now giving below error. When put the html in a CEWP it work fine but when run the page separately in browser it gives below error.

对预检请求的响应未通过访问控制检查:请求的资源上不存在"Access-Control-Allow-Origin"标头。因此不允许原点'null'访问。响应的HTTP状态代码为403

谢谢和问候
$


Er.Pradipta Nayak

访问我的博客

Xchanging
Thanks and Regards

Er.Pradipta Nayak
Visit my Blog
Xchanging

推荐答案

请查看下面提到的文章,可能对您有所帮助:

Please check below mentioned articles, may be helpful for you:

https:/ /social.msdn.microsoft.com/Forums/vstudio/en-US/39bfd042-811b-4ff3-af37-72d9c1baa097/calling-sharepoint-rest-api-from-another-applications-iframe-javascript?forum=sharepointdevelopment

https://social.msdn.microsoft.com/Forums/vstudio/en-US/39bfd042-811b-4ff3-af37-72d9c1baa097/calling-sharepoint-rest-api-from-another-applications-iframe-javascript?forum=sharepointdevelopment

http://sharepoint.stackexchange.com/questions/104663/using-sharepoint-2013-cross-domain-library-in-a-simple-web-page-is-it-possible

http://sharepoint.stackexchange.com/questions/104663/using-sharepoint-2013-cross-domain-library-in-a-simple-web-page-is-it-possible

http://sharepoint.stackexchange.com/questions/134300/updating-sharepoint-item-using-rest-api-from-outside-of-sharepoint

http://sharepoint.stackexchange.com/questions/134300/updating-sharepoint-item-using-rest-api-from-outside-of-sharepoint


这篇关于SharePoint Online REST获取列表项错误对预检请求的响应未通过访问控制检查:请求的资源上不存在“Access-Control-Allow-Origin”标头。因此不允许原点'null'访问。响应有HTTP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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