Office URI scheme : Getting error when trying to open word document from uri scheme

Lucas Corailler 1 Reputation point
2022-10-25T15:30:28.247+00:00

Hi, I am trying to implement a web app webdav client, and I need to be able to open office document from the browser in the desktop app.

So, I was trying the corresponding URI scheme ms-word:ofv|u|<https://localhost:44341/dav/General.docx> (which point on my local webdav server) and got this error in french :

![253916-image.png][1]

I would translate it like :

"To protect you from unsecured content, Office blocked the opening of this file, because it comes from a site in the Restricted site zone."

I tried the demo of a Webdav client from IT HIT WebdavSystems (https://webdavserver.net) as well as their local version, and the opening of office files works fine.

Could you help me ?

Thanks, Lucas

Microsoft 365 and Office Office Online Server
Microsoft 365 and Office Development Other
{count} votes

1 answer

Sort by: Most helpful
  1. Emi Zhang-MSFT 30,046 Reputation points Microsoft External Staff
    2022-10-26T08:35:20.537+00:00

    Hi @Lucas Corailler ,
    Did you use the IE browser as the default browser? Make sure the default browser is IE.
    You could use local machine IP address to instead of the "localhost" domain name. The localhost may cause the browser's security policy issues and does not allow such links to open.
    You can also check IIS setting for allowing this domain name.

    Just checking in to see if the information was helpful. Please let us know if you would like further assistance.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.