Skip to content

Instantly share code, notes, and snippets.

@deekayen
Created June 8, 2017 21:32
Show Gist options
  • Save deekayen/2684817dbc20c60c90279d54a3d1adbc to your computer and use it in GitHub Desktop.
Save deekayen/2684817dbc20c60c90279d54a3d1adbc to your computer and use it in GitHub Desktop.
Add X-Frame-Options: SAMEORIGIN HTTP header to all websites on IIS web servers.
c:\windows\system32\inetsrv\appcmd.exe set config /section:httpProtocol /+customHeaders.[name='X-Frame-Options',value='SAMEORIGIN']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment