How do I allow guest users to be able to open Sharepoint documents in their browser with web=1 in the URL?

Eric Shen 21 Reputation points
2021-07-06T19:23:27.343+00:00

I'm working on a client's SharePoint online site and for some reason, guest users (people who access using their their own organizational Microsoft account) are not able to open a PDF document when the URL ends with web=1, For example, https://<tenant site>/sites/Client/Docs/MyDocs.pdf?web=1 doesn't work but https://<tenant site>/sites/Client/Docs/MyDocs.pdf does). Word and Excel files work.

I don't see the problem on a different SharePoint online site so there must be some sort of configuration setting (either through Office 365 admin or SharePoint admin) that is different but I am not an admin on the problematic SharePoint site so I cannot compare the settings of both sites.

Does anybody know what needs to be enabled to allow guests to be able to open a file in the browser when the URL ends with web=1?

Thanks in advance

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,300 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Eric Shen 21 Reputation points
    2021-07-09T16:10:34.933+00:00

    Nothing shows up on the browser except a trail of five small blue dots goes across the top of the screen.
    This is the HTML from the debugger...
    113309-image.png

    In the debugger, these two requests get a response of Failed to load response data

    113368-image.png

    For non-guest users, there is a response from these two requests.

    Here are the errors being generated in the console window...
    113387-image.png