Skip to main content
Tweeted twitter.com/StackSharePoint/status/869491235693748224
added 57 characters in body
Source Link
Denis
  • 51
  • 1
  • 4

We have a website integrated with SharePoint online and we are using WopiFrame.aspxWopiFrame.aspx page for previewing documents uploaded to the Sharepoint library. The iframe has the following url: https:///_layouts/15/WopiFrame2.aspx?sourcedoc=Documents%2fpdf-sample.pdf&file=pdf-sample.pdf&action=interactivepreview.

https://<SOMESHAREPOINTDOMAIN>/_layouts/15/WopiFrame2.aspx?sourcedoc=Documents%2fpdf-sample.pdf&file=pdf-sample.pdf&action=interactivepreview.

The page looks great and shows the data we want. However, users are not able to download the file (for example PDF) when clicking on the "Download a Copy" button.enter image description here They receive a network error (blocked by response side)

It is clear that the problem is because WopiFrame.aspx page is configured with X-FRAME-OPTIONS set to SAMEORIGIN.

 enter image description here

Is there a workaround? Or maybe there is a way to show the document without this menu?

We have a website integrated with SharePoint online and we are using WopiFrame.aspx page for previewing documents uploaded to the Sharepoint library. The iframe has the following url:

https://<SOMESHAREPOINTDOMAIN>/_layouts/15/WopiFrame2.aspx?sourcedoc=Documents%2fpdf-sample.pdf&file=pdf-sample.pdf&action=interactivepreview.

The page looks great and shows the data we want. However, users are not able to download the file (for example PDF) when clicking on the "Download a Copy" button.enter image description here

It is clear that the problem is because WopiFrame.aspx page is configured with X-FRAME-OPTIONS set to SAMEORIGIN.

 enter image description here

Is there a workaround? Or maybe there is a way to show the document without this menu?

We have a website integrated with SharePoint online and we are using WopiFrame.aspx page for previewing documents uploaded to the Sharepoint library. The iframe has the following url: https:///_layouts/15/WopiFrame2.aspx?sourcedoc=Documents%2fpdf-sample.pdf&file=pdf-sample.pdf&action=interactivepreview.

The page looks great and shows the data we want. However, users are not able to download the file (for example PDF) when clicking on the "Download a Copy" button.enter image description here They receive a network error (blocked by response side)

It is clear that the problem is because WopiFrame.aspx page is configured with X-FRAME-OPTIONS set to SAMEORIGIN.enter image description here

Is there a workaround? Or maybe there is a way to show the document without this menu?

improve format
Source Link

We have a website integrated with SharePoint online and we are using WopiFrame.aspxWopiFrame.aspx page for previewing documents uploaded to the Sharepoint library. The iframe has the following url: https:///_layouts/15/WopiFrame2.aspx?sourcedoc=Documents%2fpdf-sample.pdf&file=pdf-sample.pdf&action=interactivepreview.

https://<SOMESHAREPOINTDOMAIN>/_layouts/15/WopiFrame2.aspx?sourcedoc=Documents%2fpdf-sample.pdf&file=pdf-sample.pdf&action=interactivepreview.

The page looks great and shows the data we want. However, users are not able to download the file (for example PDF) when clicking on the "Download a Copy" button.enter image description here

It is clear that the problem is because WopiFrame.aspx page is configured with X-FRAME-OPTIONS set to SAMEORIGIN. 

enter image description here

Is there a workaround? Or maybe there is a way to show the document without this menu?

We have a website integrated with SharePoint online and we are using WopiFrame.aspx page for previewing documents uploaded to the Sharepoint library. The iframe has the following url: https:///_layouts/15/WopiFrame2.aspx?sourcedoc=Documents%2fpdf-sample.pdf&file=pdf-sample.pdf&action=interactivepreview.

The page looks great and shows the data we want. However, users are not able to download the file (for example PDF) when clicking on the "Download a Copy" button.enter image description here

It is clear that the problem is because WopiFrame.aspx page is configured with X-FRAME-OPTIONS set to SAMEORIGIN.enter image description here

Is there a workaround? Or maybe there is a way to show the document without this menu?

We have a website integrated with SharePoint online and we are using WopiFrame.aspx page for previewing documents uploaded to the Sharepoint library. The iframe has the following url:

https://<SOMESHAREPOINTDOMAIN>/_layouts/15/WopiFrame2.aspx?sourcedoc=Documents%2fpdf-sample.pdf&file=pdf-sample.pdf&action=interactivepreview.

The page looks great and shows the data we want. However, users are not able to download the file (for example PDF) when clicking on the "Download a Copy" button.enter image description here

It is clear that the problem is because WopiFrame.aspx page is configured with X-FRAME-OPTIONS set to SAMEORIGIN. 

enter image description here

Is there a workaround? Or maybe there is a way to show the document without this menu?

Source Link
Denis
  • 51
  • 1
  • 4

WopiFrame.aspx download document button doesn't work when used inside iframe in a different domain

We have a website integrated with SharePoint online and we are using WopiFrame.aspx page for previewing documents uploaded to the Sharepoint library. The iframe has the following url: https:///_layouts/15/WopiFrame2.aspx?sourcedoc=Documents%2fpdf-sample.pdf&file=pdf-sample.pdf&action=interactivepreview.

The page looks great and shows the data we want. However, users are not able to download the file (for example PDF) when clicking on the "Download a Copy" button.enter image description here

It is clear that the problem is because WopiFrame.aspx page is configured with X-FRAME-OPTIONS set to SAMEORIGIN.enter image description here

Is there a workaround? Or maybe there is a way to show the document without this menu?