_api/contextinfo 401(未经授权) [英] _api/contextinfo 401 (Unauthorized)
问题描述
嗨!
我们有一个启用了匿名访问权限的公共共享站点,但是当匿名用户想要使用搜索框时,将显示身份验证窗口,并显示_api/contextinfo 401(未经授权)错误.
We have a public sharepoint site with enabled anonymus access, but when Anonymus User would like to use search box the authentication window appear and get an _api/contextinfo 401 (Unauthorized) error.
在另一页上,当我们调用clientcontext函数时,我们使用了自定义脚本,并且发生了同样的事情-匿名用户的_api/contextinfo 401(未经授权).
On the other page, we use a custom script, when we call the clientcontext function and the same thing happens - _api/contextinfo 401 (Unauthorized) for Anonymus User.
为什么?
请帮助我!
谢谢
Mykie
推荐答案
嗨Mykie,
Hi Mykie,
请按照以下步骤解决您的问题:
Please follow the steps below to troubleshoot your issue:
转到站点设置"->站点权限"->匿名访问",确保您已选择整个网站",以使匿名用户可以访问.
Go to site settings->site permissions->Anonymous Access, make sure you have selected "Entire Web Site" for Anonymous users can access.
转到网站设置"->网站集"功能,确保受限访问用户权限锁定模式"功能已停用.
Go to site settings->site collection features, make sure "limited-access user permission lockdown mode" feature has deactivate.
转到网站设置->搜索和离线可用性,为网站重新编制索引.
Go to site settings->search and offline availability, reindex site.
转到管理中心->管理服务应用程序->搜索服务应用程序->内容源->选择相关的内容源并开始完全爬网.
Go to Central Administration->Manage Service Applications->search service application->content source->select the relevant content source and start a full crawl.
最诚挚的问候,
Grace Wang
Grace Wang
这篇关于_api/contextinfo 401(未经授权)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!