diff --git a/app/__init__.py b/app/__init__.py index 259b3bd8..b0f05f65 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -56,6 +56,7 @@ def create_app(config_class): "connect-src": app.config["CSP_CONNECT_SRC"], "media-src": app.config["CSP_MEDIA_SRC"], }, + content_security_policy_nonce_in=["script-src", "style-src"], feature_policy={ "camera": "'none'", "fullscreen": "'self'", diff --git a/app/templates/base.html b/app/templates/base.html index 4a0429c4..be2cf7da 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -262,6 +262,6 @@ {% endblock %} {% block bodyEnd %} - - + + {% endblock %} diff --git a/app/templates/catalogue/archive.html b/app/templates/catalogue/archive.html index c186dd3c..c14ceb67 100644 --- a/app/templates/catalogue/archive.html +++ b/app/templates/catalogue/archive.html @@ -27,7 +27,7 @@ {% block stylesheets %} {{ super() }} - + {% endblock %} {% block beforeContent %} diff --git a/app/templates/catalogue/creator.html b/app/templates/catalogue/creator.html index 0a3b0e77..75dd4500 100644 --- a/app/templates/catalogue/creator.html +++ b/app/templates/catalogue/creator.html @@ -27,7 +27,7 @@ {% block stylesheets %} {{ super() }} - + {% endblock %} {% block beforeContent %} diff --git a/app/templates/catalogue/person.html b/app/templates/catalogue/person.html index 2d984981..25c2a60d 100644 --- a/app/templates/catalogue/person.html +++ b/app/templates/catalogue/person.html @@ -27,7 +27,7 @@ {% block stylesheets %} {{ super() }} - + {% endblock %} {% block beforeContent %} diff --git a/app/templates/catalogue/record.html b/app/templates/catalogue/record.html index b36ce8b3..3e9af8d4 100644 --- a/app/templates/catalogue/record.html +++ b/app/templates/catalogue/record.html @@ -30,7 +30,7 @@ {% block stylesheets %} {{ super() }} - + {% endblock %} {% block beforeContent %} diff --git a/app/templates/explore-the-collection/article-focused.html b/app/templates/explore-the-collection/article-focused.html index 8e48f82a..40f36c00 100644 --- a/app/templates/explore-the-collection/article-focused.html +++ b/app/templates/explore-the-collection/article-focused.html @@ -147,6 +147,6 @@