Skip to main content
Solved

Preview of pdf files stored in Azure


Ionut
Warrior
Forum|alt.badge.img+2

Hi!

We have some problems when it comes to load the preview for pdf files stored in Azure.

We are getting this error "This page has been blocked by Chrome". The thing is that other files as images are working just fine and the pdf files stored using blob are working as well.

There is no specific error in console log and in network it looks like it was loaded ok.

Do you have any suggestion? Thanks!

Best answer by Anne Buit

Hi,

Scroll down a bit in the response headers.

I’m afraid the x-frame-options response header is set to SAMEORIGIN by SharePoint which blocks previewing of the pdf.

This seems to be by design.

 

View original
Did this topic help you find an answer to your question?

2 replies

Anne Buit
Community Manager
Forum|alt.badge.img+5
  • Community Manager
  • 653 replies
  • Answer
  • May 28, 2025

Hi,

Scroll down a bit in the response headers.

I’m afraid the x-frame-options response header is set to SAMEORIGIN by SharePoint which blocks previewing of the pdf.

This seems to be by design.

 


Ionut
Warrior
Forum|alt.badge.img+2
  • Author
  • Warrior
  • 27 replies
  • May 28, 2025
Anne Buit wrote:

Hi,

Scroll down a bit in the response headers.

I’m afraid the x-frame-options response header is set to SAMEORIGIN by SharePoint which blocks previewing of the pdf.

This seems to be by design.

 

Indeed that's the case, looks like the preview component isn't enough for this.

Thanks!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings