about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--templates/base.html1
-rw-r--r--templates/security_tags.html2
2 files changed, 3 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
index 4ba8442..02fdfe6 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -1,6 +1,7 @@
 <!DOCTYPE html>
 <html lang="{{ lang | default(value="en-US" ) }}">
 <head>
+  {% include "security_tags.html" ignore missing %}
   <meta charset="utf-8">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   {% include "favicon.html" ignore missing -%}
diff --git a/templates/security_tags.html b/templates/security_tags.html
new file mode 100644
index 0000000..721d511
--- /dev/null
+++ b/templates/security_tags.html
@@ -0,0 +1,2 @@
+<!-- These tags are here for demostration. It's recommended to send them via HTTP headers instead. -->
+<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src 'self'; object-src 'none'; script-src 'none'; style-src 'unsafe-inline'; frame-ancestors 'none'">