~erock/pico.sh

v1 prose.sh: chore: add security headers v1 APPLIED

Eric Bower: 1
 chore: add security headers

 1 files changed, 18 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~erock/pico.sh/patches/34003/mbox | git am -3
Learn more about email & git

[PATCH v1 prose.sh] chore: add security headers Export this patch

---
 Caddyfile | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/Caddyfile b/Caddyfile
index 7fe8b0f..36828b0 100644
--- a/Caddyfile
+++ b/Caddyfile
@@ -4,6 +4,24 @@
		interval 1m
		burst 10
	}

    header {
        # disable FLoC tracking
        Permissions-Policy interest-cohort=()

        # enable HSTS
        Strict-Transport-Security max-age=31536000;

        # disable clients from sniffing the media type
        X-Content-Type-Options nosniff

        # clickjacking protection
        X-Frame-Options DENY

        # keep referrer data off of HTTP connections
        Referrer-Policy no-referrer-when-downgrade
    }

}

*.prose.sh, prose.sh {
-- 
2.37.0