Guest User

Untitled

a guest
Mar 20th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. <system.webServer>
  2. <httpProtocol>
  3. <customHeaders>
  4. <add name="X-Frame-Options" value="SAMEORIGIN" />
  5. </customHeaders>
  6. </httpProtocol>
  7. </system.webServer>
  8.  
  9. private void Page_Load(object sender, System.EventArgs e)
  10. {
  11. Response.AddHeader("X-Frame-Options", "SAMEORIGIN");
  12. }
Add Comment
Please, Sign In to add comment