From 92a95518b6649a7ed427d486a41935fbd041a9c2 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Tue, 31 May 2022 01:06:59 -0700 Subject: Security Headers --- templates/macros/head.html | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'templates/macros') diff --git a/templates/macros/head.html b/templates/macros/head.html index 0107b83..3ea785a 100644 --- a/templates/macros/head.html +++ b/templates/macros/head.html @@ -194,6 +194,14 @@ {#- Extra SEO END #} {%- endmacro %} +{%- macro security() %} + {%- if config.extra.security_headers %} + {#- options: no-referrer, same-origin, strict-origin, strict-origin-when-cross-origin #} + + {%- endif %} +{%- endmacro %} + + {%- macro math() %} {%- if config.extra.katex_enabled %} -- cgit v1.3.1