Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Add script-src 'unsafe-inline'
Browse files Browse the repository at this point in the history
  • Loading branch information
EdOverflow committed Dec 22, 2016
1 parent 961ce59 commit 821eae2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions gratipay/security/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def add_headers_to_response(response):
'style-src assets.gratipay.com cloud.typography.com;'
'img-src *;'
'font-src assets.gratipay.com cloud.typography.com;'
"script-src 'unsafe-inline'"
'upgrade-insecure-requests;'
'block-all-mixed-content;'
'reflected-xss block;')
1 change: 1 addition & 0 deletions tests/py/test_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def test_ahtr_sets_content_security_policy(self):
'style-src assets.gratipay.com cloud.typography.com;'
'img-src *;'
'font-src assets.gratipay.com cloud.typography.com;'
"script-src 'unsafe-inline'"
'upgrade-insecure-requests;'
'block-all-mixed-content;'
'reflected-xss block;')
Expand Down

0 comments on commit 821eae2

Please sign in to comment.