From 1b21827a493fdc4bdecc7b1b0d860b21d70e303f Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Sat, 17 Feb 2024 10:23:30 -0800 Subject: [PATCH] more cors updates --- config.toml | 2 +- static/_headers | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/config.toml b/config.toml index ad22981..7626d44 100644 --- a/config.toml +++ b/config.toml @@ -197,7 +197,7 @@ copyright = "© $CURRENT_YEAR $AUTHOR $SEPARATOR Unless otherwise noted, the con allowed_domains = [ { directive = "font-src", domains = ["'self'", "data:"] }, { directive = "img-src", domains = ["'self'", "https://*", "data:"] }, - { directive = "script-src", domains = ["'self'", "https://comments.softinio.com/js/embed.min.js", "https://static.cloudflareinsights.com/beacon.min.js"] }, + { directive = "script-src", domains = ["'self'", "https://comments.softinio.com/js/embed.min.js", "https://static.cloudflareinsights.com"] }, { directive = "style-src", domains = ["'self'"] }, { directive = "frame-src", domains = ["player.vimeo.com", "https://www.youtube-nocookie.com", "https://watch.softinio.com", "https://notes.softinio.com/embed"] }, ] diff --git a/static/_headers b/static/_headers index 063c000..9120cea 100644 --- a/static/_headers +++ b/static/_headers @@ -1,5 +1,3 @@ -https://comments.softinio.com - Access-Control-Allow-Origin: https://comments.softinio.com -https://www.softinio.com - Access-Control-Allow-Origin: https://www.softinio.com +/* + Access-Control-Allow-Origin: https://www.softinio.com https://comments.softinio.com