diff --git a/pagure/flask_app.py b/pagure/flask_app.py index 79a912c..6f16786 100644 --- a/pagure/flask_app.py +++ b/pagure/flask_app.py @@ -502,7 +502,7 @@ def after_request(response): csp_headers = csp_headers.format(nonce=flask.g.nonce) except (KeyError, IndexError): pass - response.headers.set("Content-Security-Policy", csp_headers) + response.headers.set(str("Content-Security-Policy"), csp_headers) return response