-
AuthorPosts
-
May 9, 2021 at 7:05 pm #1299176
Hello,
I have a PowerPoint file embedded on my site via iframe – it works flawlessy in Edge, but in Chrome, it kicks an error and doesn’t load (unless I am logged into my MS account): Error: Refused to display ‘https://login.microsoftonline.com/’ in a frame because it set ‘X-Frame-Options’ to ‘deny’. In Safari it doesn’t look at all.
How can I adjust my site settings so this embeds properly in Chrome and Safari? If I change my settings to accept all cookies, it alleviates it, but that is not a reasonable expectation of all my site’s visitors. There has to be a .php change or otherwise to make this work.
- This topic was modified 3 years, 7 months ago by shawnbanack.
May 10, 2021 at 1:58 am #1299196The problem in Chrome was solved by an htaccess addition of Header always unset X-Frame-Options. Firefox and Edge have no issues. In incognito/private windows, the issue remains. In Safari, the iframe doesn’t load at all. The fix for that, while not elegant, will get us by:
1. For iframe embedding to work, you must disable the Cross-site tracking from Safari.
2. Open Settings.
3. Open the Safari section.
4. Under thePrivacy
heading, make sure thePrevent Cross-Site Tracking
switch is off.
5. Go back to the Home screen, open Safari again, and try again.There are embedding plugs in available that display the PowerPoint, but the resolution on every single one of them is atrocious, so I don’t see another option outside of using the iframe setup with a direct link to the files in my SharePoint account.
Unsure if you have any potential alternatives, or even a solution to the Safari issue that doesn’t require users to change their settings?
May 14, 2021 at 2:54 pm #1300335Hi,
Thanks for contacting us and sorry for the late reply!
I just checked your website on Firefox, Chrome and Safari on my mac and Safari on my iphone and PowerPoint file works fine on my end on all browsers. It just asks to switch to landscape mode on my iphone but it does work fine.
I attached a screenshot in private content field below.
Have you figured it out already? :)
Best regards,
Yigit -
AuthorPosts
- You must be logged in to reply to this topic.