Hope it can help you. Thanks for your understanding.
Captura de ecrã 2023-01-11 105521.pngHello
Thanks for the repsonse.
I have added in the web.config the setting.
However, now the error in the image below appears "Refused to display 'https:... in a frame because it set multiple 'X-Frame-Options' headers with conflicting values ('SAMEORIGIN, ALLOW'). Falling back to 'deny'."
I have checked in webpart and in IIS and there is no SAMEORIGIN setting...where could this setting be?
I also noticed that the behavior of the component differs by browser. In IE it says "This browser does not support inline PDFs. Please download the PDF to view it: Download PDF", in Edge it says "www.xpto.pr refused to connect".
Any suggestions?
I've done everything, but I'm still in trouble.
I also followed this post [http://sadomovalex.blogspot.com/2015/12/remove-x-frame-options-sameorigin-http.html
and returns the error of the attached image...
Invalid 'X-Frame-Options' header encountered when loading 'https://www.xpto.pt/': '' is not a recognized directive. The header will be ignored.
1.png
Any suggestions? Thanks