Skip to content

Commit

Permalink
Make sample Content-Security-Policy more restrictive.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAnson committed Aug 28, 2016
1 parent 4edfa67 commit 43ad483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<customHeaders>
<!-- Clear other custom headers -->
<clear/>
<!-- Limit resources to the same origin (allowing inline styles and script evaluation) -->
<add name="Content-Security-Policy" value="default-src 'self' ; referrer no-referrer"/>
<!-- Limit resources to the same origin, block referrer -->
<add name="Content-Security-Policy" value="default-src 'none' ; script-src 'self' ; connect-src 'self' ; img-src 'self' ; style-src 'self' ; referrer no-referrer"/>
</customHeaders>
</httpProtocol>
</system.webServer>
Expand Down

0 comments on commit 43ad483

Please sign in to comment.