diff --git a/authentik/brands/utils.py b/authentik/brands/utils.py index 9b2b5be65c..2487653cb7 100644 --- a/authentik/brands/utils.py +++ b/authentik/brands/utils.py @@ -66,4 +66,5 @@ def context_processor(request: HttpRequest) -> dict[str, Any]: "footer_links": tenant.footer_links, "html_meta": {**get_http_meta()}, "version": authentik_full_version(), + "csp_nonce": request.request_id, } diff --git a/authentik/core/templates/base/header_js.html b/authentik/core/templates/base/header_js.html index 39dc374cf0..cc5b673258 100644 --- a/authentik/core/templates/base/header_js.html +++ b/authentik/core/templates/base/header_js.html @@ -1,7 +1,7 @@ {% load i18n %} {% get_current_language as LANGUAGE_CODE %} -