admin管理员组文章数量:1122846
I am trying to use a MS Office URI which will automatically open Excel 2016. I am using a URI
similar to:
ms-excel:ofe|u|<https://localhost:7068/getOfficeFile?fileName=2021_12_06_Metrics.xlsx>
I have also used:
ms-excel:ofe|u|<.xlsx>
I have created an endpoint in my application to fetch the document and stream it to excel.
It doesn't matter if I run it locally or hosted, when I put the URI into the browser, and hit enter, I get asked if I want to open excel. I say yes, but I always get the same result from Office:
To protect you from unsafe content, Office has blocked opening this file because it is coming from a site in the Restricted Sites zone.
I have tried adding mysite
to the Trusted locations for Excel and also I've added it to Windows Internet Properties Trusted Sites. I have verified these are not in the Restricted Sites on Windows.
I can't seem to find anything else that would be blocking me from opening this excel file directly in Excel. I can download and open the file just fine, but I want the generated link to automatically open Excel.
Has anyone been able to locate some other Restricted Sites zone?
Has anyone been able to get this to work?
I am trying to use a MS Office URI which will automatically open Excel 2016. I am using a URI
similar to:
ms-excel:ofe|u|<https://localhost:7068/getOfficeFile?fileName=2021_12_06_Metrics.xlsx>
I have also used:
ms-excel:ofe|u|<https://testsite.com/getOfficeFile?fileName=2021_12_06_Metrics.xlsx>
I have created an endpoint in my application to fetch the document and stream it to excel.
It doesn't matter if I run it locally or hosted, when I put the URI into the browser, and hit enter, I get asked if I want to open excel. I say yes, but I always get the same result from Office:
To protect you from unsafe content, Office has blocked opening this file because it is coming from a site in the Restricted Sites zone.
I have tried adding mysite.com
to the Trusted locations for Excel and also I've added it to Windows Internet Properties Trusted Sites. I have verified these are not in the Restricted Sites on Windows.
I can't seem to find anything else that would be blocking me from opening this excel file directly in Excel. I can download and open the file just fine, but I want the generated link to automatically open Excel.
Has anyone been able to locate some other Restricted Sites zone?
Has anyone been able to get this to work?
Share Improve this question edited Nov 23, 2024 at 7:39 Ostoura 2,5232 gold badges27 silver badges45 bronze badges asked Nov 22, 2024 at 16:46 Ryan LaClaireRyan LaClaire 113 bronze badges1 Answer
Reset to default 0Just trust the location like it says here : https://learn.microsoft.com/en-us/sharepoint/dev/general-development/how-to-trust-a-location
本文标签: excelOpening MS Office URI getting not allowed due to Restricted SiteStack Overflow
版权声明:本文标题:excel - Opening MS Office URI getting not allowed due to Restricted Site - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736302238a1931463.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论