Forum Discussion

Deleted's avatar
Deleted
Oct 01, 2019

This content cannot be displayed in a frame

We cannot use forms anywhere in Sharepoint because when web part is added the window displays a "This content cannot be dispalyed in a frame" Other browsers report "login.microsoftonline.com refused to connect.". If Microsoft browsers doesn't support frames, why is the Forms dev team using them?

 

We had forms in use before this week, but now they are all blocked and don't render. Maybe a change made to Forms over the weekend?

  • latonita's avatar
    latonita
    Copper Contributor

    We have same issue. 

    Marketing dept created form, embedded it on the sharepoint page and sent out to whole organization.

    As a result - half of organization can see form, half - not.

    Form is not anonymous, so it requires user to be logged in to record his name.

    This what we see in console:

     

    Refused to display <a href="https://login.microsoftonline.com/common/oauth2/authorize?client_id=00000002-0000-0ff1-ce00-000000000000&redirect_uri=https%3a%2f%2foutlook.office365.com%2fowa%2f&resource=00000002-0000-0ff1-ce00-000000000000&response_mode=form_post&response_type=code+id_token&scope=openid&msafed=0&client-request-id=xxx&protectedtoken=true&nonce=xxx&state=xxx’" target="_blank">https://login.microsoftonline.com/common/oauth2/authorize?client_id=00000002-0000-0ff1-ce00-000000000000&redirect_uri=https%3a%2f%2foutlook.office365.com%2fowa%2f&resource=00000002-0000-0ff1-ce00-000000000000&response_mode=form_post&response_type=code+id_token&scope=openid&msafed=0&client-request-id=xxx&protectedtoken=true&nonce=xxx&state=xxx’</a> in a frame because it set ‘X-Frame-Options’ to ‘deny’.

     

    Any ideas?

  • Damien_Rosario's avatar
    Damien_Rosario
    Silver Contributor

    Hi there

     

    What you are experiencing with the web parts isn't normal behaviour (works fine for me via PC and web browser). If you happen to be accessing the forms web part from the SharePoint app then it will not work due to a bug with the way SharePoint mobile app handles authenticating user access to the Form.

     

    latonita , your error link appears to be happening when someone attempts to open the page from Outlook web. It should have allowed access so not sure why things are not working unless you are accessing it via the SharePoint mobile app.

     

    You may want to log a support ticket with Microsoft about your respective issues.

     

    Best wishes

    Damien

     

    • latonita's avatar
      latonita
      Copper Contributor
      Thanks Damien,

      this is not a mobile app for sure. Just sharepoint online with forms webapp + form which saves name. Not clear why webapp not picking up authorization somehow and redirects to login.microsoftonline.com which doesnt allow embedding.
      What we also noticed, that in Firefox it works okay, but Chrome/Safari give that error.
      Anton
      • Damien_Rosario's avatar
        Damien_Rosario
        Silver Contributor

        Hi latonita 

         

        If your marketing department has used the web part for Forms in the SharePoint page and you are accessing it from the web browser, it should work.

         

        But I guess as a workaround, you may also want to add the Forms direct link under the web part so if it doesn't load, you can say something like "If you cannot view the form, please click here" and have it open into a new browser tab (similar to how HTML emails have that same warning in case you can't see the email properly in your mail client).

         

        If the marketing team has embedded the code into the page and didn't use the web part, then I suspect it will fail as it won't be able to authenticate the users access to the form and probably attempt to redirect to a login screen (sounds like your scenario?).

         

        Cheers

        Damien

Resources