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 Office Online Server
Microsoft Office Online Server
Microsoft on-premises server product that runs Office Online. Previously known as Office Web Apps Server.
606 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,642 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Emi Zhang-MSFT 23,031 Reputation points Microsoft Vendor
    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