Skip to content

Commit

Permalink
feat: security headers set
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubnakielskixebia committed Apr 12, 2024
1 parent 805ea46 commit f507b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xebia_email_signature/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def prepare_response(response):
response.headers["X-Frame-Options"] = "SAMEORIGIN"
response.headers["X-Content-Type-Options"] = "nosniff"
response.headers["Content-Security-Policy"] = "script-src 'self'"
response.headers["Permission-Policy"] = "geolocation=(self 'https://signature.xebia.com'), microphone=(), "
response.headers["Permissions-Policy"] = "geolocation=(self 'https://signature.xebia.com'), microphone=(), "
response.headers["Referrer-Policy"] = "no-referrer-when-downgrade"
response.headers["X-XSS-Protection"] = "1"
return response
Expand Down

0 comments on commit f507b6e

Please sign in to comment.