CORS and security updates #2

Merged
softinio merged 2 commits from cors-security-fix1 into main 2024-02-17 12:53:33 -08:00
2 changed files with 6 additions and 1 deletions
Showing only changes of commit f24eb27bef - Show all commits

View file

@ -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"] },
{ directive = "script-src", domains = ["'self'", "https://comments.softinio.com/js/embed.min.js", "https://static.cloudflareinsights.com/beacon.min.js"] },
{ 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"] },
]

5
static/_headers Normal file
View file

@ -0,0 +1,5 @@
https://comments.softinio.com
Access-Control-Allow-Origin: https://comments.softinio.com
https://www.softinio.com
Access-Control-Allow-Origin: https://www.softinio.com