Skip to content

Commit

Permalink
Add security headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ilayda-cp committed Sep 9, 2024
1 parent c81c30f commit d7144f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
],
}

def set_handlers(app):

def set_handlers(app):
def get_csp_as_str(csp={}):
csp_str = ""
for key, values in csp.items():
Expand All @@ -60,4 +60,4 @@ def add_headers(response):
)
response.headers["Cross-Origin-Resource-Policy"] = "same-site"
response.headers["X-Permitted-Cross-Domain-Policies"] = "none"
return response
return response

0 comments on commit d7144f4

Please sign in to comment.