From e0758ee12e48a313333199147ec68f2b396f59f9 Mon Sep 17 00:00:00 2001
From: Charles Reid <charlesreid1@gmail.com>
Date: Thu, 25 Jun 2020 18:20:31 -0700
Subject: [PATCH] add CSP and gitea CSP (report only mode)

---
 conf.d/csp.conf      | 1 +
 conf.d/giteacsp.conf | 1 +
 2 files changed, 2 insertions(+)
 create mode 100644 conf.d/csp.conf
 create mode 100644 conf.d/giteacsp.conf

diff --git a/conf.d/csp.conf b/conf.d/csp.conf
new file mode 100644
index 0000000..773033e
--- /dev/null
+++ b/conf.d/csp.conf
@@ -0,0 +1 @@
+add_header Content-Security-Policy-Report-Only "default-src 'self' 'unsafe-inline' 'unsafe-eval';";
diff --git a/conf.d/giteacsp.conf b/conf.d/giteacsp.conf
new file mode 100644
index 0000000..773033e
--- /dev/null
+++ b/conf.d/giteacsp.conf
@@ -0,0 +1 @@
+add_header Content-Security-Policy-Report-Only "default-src 'self' 'unsafe-inline' 'unsafe-eval';";