From 20de3338667a029359a6a8ef20f1dc0cff5487a0 Mon Sep 17 00:00:00 2001 From: Jieiku <106644+Jieiku@users.noreply.github.com> Date: Sun, 5 May 2024 11:13:14 -0700 Subject: [PATCH] Update Headers and theme.toml --- netlify.toml | 2 +- static/_headers | 2 ++ theme.toml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/netlify.toml b/netlify.toml index a3882cde..6f854a31 100644 --- a/netlify.toml +++ b/netlify.toml @@ -17,7 +17,7 @@ command = "zola build --base-url $DEPLOY_PRIME_URL && npm run abridge && zola bu Referrer-Policy = "strict-origin-when-cross-origin" Strict-Transport-Security = "max-age=63072000; includeSubdomains" # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy (disabled everything except autoplay, local-fonts, screen-wake-lock, speaker-selection) - # opt out of »Federated Learning of Cohorts (aka "FLoC")« - https://amifloced.org/ + # opt out of Federated Learning of Cohorts (aka "FLoC") - https://amifloced.org/ Permissions-Policy = "interest-cohort=(), accelerometer=(), ambient-light-sensor=(), battery=(), bluetooth=(), browsing-topics=(), camera=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), gamepad=(), geolocation=(), gyroscope=(), hid=(), identity-credentials-get=(), idle-detection=(), magnetometer=(), microphone=(), midi=(), otp-credentials=(), payment=(), picture-in-picture=(), publickey-credentials-create=(), publickey-credentials-get=(), serial=(), storage-access=(), sync-xhr=(), usb=(), web-share=(), window-management=(), xr-spatial-tracking=()" Content-Security-Policy = "default-src 'none'; frame-ancestors 'none'; object-src 'none'; base-uri 'self'; manifest-src 'self'; worker-src 'self'; form-action 'self'; connect-src 'self' *.hyvor.com ws://*.hyvor.com; script-src 'self' talk.hyvor.com; img-src 'self' data: talk.hyvor.com cdn.cloudflare.com; frame-src 'self' www.youtube-nocookie.com player.vimeo.com streamable.com www.streamable.com; media-src 'self' data: cdn.cloudflare.com www.youtube-nocookie.com player.vimeo.com; font-src 'self' cdn.cloudflare.com cdn.jsdelivr.net fonts.gstatic.com; style-src 'self' talk.hyvor.com cdn.cloudflare.com cdn.jsdelivr.net fonts.googleapis.com;" [[headers]] diff --git a/static/_headers b/static/_headers index 15ef3f40..cb061f25 100644 --- a/static/_headers +++ b/static/_headers @@ -1,4 +1,6 @@ # This _headers file is used to set headers on cloudflare pages: https://developers.cloudflare.com/pages/configuration/headers/ +# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Permissions-Policy (disabled everything except autoplay, local-fonts, screen-wake-lock, speaker-selection) +# opt out of Federated Learning of Cohorts (aka "FLoC") - https://amifloced.org/ /* X-Frame-Options: DENY X-Content-Type-Options: nosniff diff --git a/theme.toml b/theme.toml index 0e18bea0..8e2f11a7 100644 --- a/theme.toml +++ b/theme.toml @@ -3,7 +3,7 @@ description = "A fast and lightweight Zola theme using semantic html, a class-li license = "MIT" homepage = "https://github.com/jieiku/abridge" min_version = "0.18.0" -demo = "https://abridge.netlify.app/" +demo = "https://abridge.pages.dev/" # Abridge theme author info [author]