无法在内部调用 REST API Sharepoint 2013
Not able to invoke REST APIs Sharepoint 2013 onpremise
我已经在 VM 上部署了新的 SharePoint 2013 实例。我能够成功创建 Web 应用程序和网站集。我什至可以通过网络浏览器访问我的网站、创建文件夹、文件。
但是,我无法访问同一站点的 REST API 并出现以下错误。请查看以下代码段:
GET http://xx.xx.xx.xx/_api/web/lists
获取错误 "The Web application at http://xx.xx.xx.xx could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application."
求推荐。
您使用的是主机名还是 IP?
如果您使用的是主机名,则应在主机文件中添加新条目。
结构:
IP 主机名
xxx.xxx.xxx.xxx 康托索
http://support.sherweb.com/Faqs/Show/how-to-edit-the-hosts-file-windows
或
您可以修改备用访问映射。
https://docs.microsoft.com/en-us/sharepoint/administration/configure-alternate-access-mappings
我已经在 VM 上部署了新的 SharePoint 2013 实例。我能够成功创建 Web 应用程序和网站集。我什至可以通过网络浏览器访问我的网站、创建文件夹、文件。
但是,我无法访问同一站点的 REST API 并出现以下错误。请查看以下代码段:
GET http://xx.xx.xx.xx/_api/web/lists
获取错误 "The Web application at http://xx.xx.xx.xx could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping to the intended application."
求推荐。
您使用的是主机名还是 IP? 如果您使用的是主机名,则应在主机文件中添加新条目。 结构:
IP 主机名
xxx.xxx.xxx.xxx 康托索
http://support.sherweb.com/Faqs/Show/how-to-edit-the-hosts-file-windows
或
您可以修改备用访问映射。
https://docs.microsoft.com/en-us/sharepoint/administration/configure-alternate-access-mappings