Skip to content

Instantly share code, notes, and snippets.

@hrafven
Created November 2, 2021 14:13
Show Gist options
  • Save hrafven/e0660971f3527670ad9ff85280744670 to your computer and use it in GitHub Desktop.
Save hrafven/e0660971f3527670ad9ff85280744670 to your computer and use it in GitHub Desktop.
<script runat=server>
Platform.Response.SetResponseHeader("Strict-Transport-Security","max-age=200");
Platform.Response.SetResponseHeader("X-XSS-Protection","1; mode=block");
Platform.Response.SetResponseHeader("X-Frame-Options","Deny");
Platform.Response.SetResponseHeader("X-Content-Type-Options","nosniff");
Platform.Response.SetResponseHeader("Referrer-Policy","strict-origin-when-cross-origin");
Platform.Response.SetResponseHeader("Content-Security-Policy","default-src 'self'");
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment