I am developing an application for a social network. When I try to access it I get an error in my browser:
Refused to display document because display forbidden by X-Frame-Options.
This social network uses Iframe. My question is, how do I change the header to solve this problem?
Considering Overcoming "Display forbidden by X-Frame-Options", in my servlet I tried command:
httpServletResponse.addHeader("X-FRAME-OPTIONS", "SAMEORIGIN" );
Considering http://www.rivercitystudio.com/blog/2011/09/google-maps-embedding-x-frame-options-change/ I've also tried adding in my url the following:
None of the two alternatives worked.