Skip to content

Commit

Permalink
Changed headers ckan variables to full names
Browse files Browse the repository at this point in the history
  • Loading branch information
toavina committed Feb 5, 2025
1 parent 6c56de3 commit 4cf45be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ckanext/fjelltopp_security/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ def apply_owasp(response):
"",
)
response.headers["Cross-Origin-Opener-Policy"] = config.get(
"ckanext.fjelltopp_security.coop", "same-site"
"ckanext.fjelltopp_security.Cross-Origin-Opener-Policy", "same-site"
)
response.headers["Cross-Origin-Embedder-Policy"] = config.get(
"ckanext.fjelltopp_security.coep", "unsafe-none"
"ckanext.fjelltopp_security.Cross-Origin-Embedder-Policy", "unsafe-none"
)
response.headers["Cross-Origin-Resource-Policy"] = config.get(
"ckanext.fjelltopp_security.corp", "cross-origin"
"ckanext.fjelltopp_security.Cross-Origin-Resource-Policy", "cross-origin"
)
response.headers["Content-Security-Policy"] = config.get(
"ckanext.fjelltopp_security.content_security_policy", ""
Expand Down

0 comments on commit 4cf45be

Please sign in to comment.