"Failure to display a document because display is prohibited using X-Frame-Options." Change title

I am developing a social network application. When I try to access it, I get an error message in my browser:

Refuses to display the document, because display is prohibited using X-Frame-Options.

This social network uses Iframe. My question is: how to change the title to solve this problem?

Considering overcoming and displaying forbidden X-Frame parameters , in my servlet I tried the command:

httpServletResponse.addHeader("X-FRAME-OPTIONS", "SAMEORIGIN" ); 

Given http://www.rivercitystudio.com/blog/2011/09/google-maps-embedding-x-frame-options-change/ I also tried adding the following to my url:

 &output=embed 

None of the two alternatives worked.

+6
source share
1 answer

If this is your frame page, do not submit X-Frame-Options at all. The default is permission.

If this is a social network page that is in the frame, then there is no way to turn it off. In general, this is preventing clickjacking through frames.

+3
source

Source: https://habr.com/ru/post/901954/


All Articles