SP 2016:Chrome浏览器跨域问题 [英] SP 2016: Chrome browser cross domain issue
问题描述
Hi Team,
我们需要打开newform.aspx表单,该表单绑定到Web应用程序A中存在的列表,该站点位于Web应用程序B中所以我们将添加一个超链接,从Web应用程序B中的网站打开这个newform.aspx
当通过Internet Explorer打开时,它工作正常但是从Chrome打开它的交叉域名问题
注意:我们的网站是主机标题网站集
赞赏任何指针!
问候,
Akshay
您好Akshay,
请使用SharePoint设计器打开newform.aspx页面,并在高级模式下编辑页面,并在
PlaceHolderPageTitle 内容元素中附加以下内容。
< pre class ="prettyprint">< WebPartPages:AllowFraming runat =" server" />并尝试将网页浏览器的Web部件添加到网页中申请B.从Web应用程序A显示newform.aspx页面。
并尝试在下面添加chrome插件以检查它是否有效。
https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi
并查看以下文章。
https://melissabajric.us/csom-cors-403/
https://lionadi.wordpress.com/2016/03/22/sharepoint-cors-fix/
最好的问候,
Dennis
Hi Team,
We have a requirement to open newform.aspx form which is binded to a list present in web application A from a site which is in web application B. So we will be adding a hyperlink to open this newform.aspx from a site which is in web application B
When opening via Internet explorer it works fine however while opening from Chrome its giving cross domain issue
Note: Our sites are Host Header Site Collections
Any pointer is appreciated!
Regards,
Akshay
Hi Akshay,
Please open the newform.aspx page using SharePoint designer, and edit the page in advanced mode and append the below content inside the PlaceHolderPageTitle content element.
<WebPartPages:AllowFraming runat="server"/>And try to add a page viewer web part to a page in web application B to show the newform.aspx page from web application A.
And try to add chrome plugin below to check if it works.
https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi
And check the articles below.
https://melissabajric.us/csom-cors-403/
https://lionadi.wordpress.com/2016/03/22/sharepoint-cors-fix/
Best Regards,
Dennis
这篇关于SP 2016:Chrome浏览器跨域问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!