✨ feat: allow customizable secure headers (CSP)
This commit is contained in:
13
config.toml
13
config.toml
@@ -43,3 +43,16 @@ socials = [
|
||||
{ name = "youtube", url = "https://youtube.com/@oskerwyld", icon = "youtube" },
|
||||
{ name = "spotify", url = "https://open.spotify.com/artist/5Hv2bYBhMp1lUHFri06xkE", icon = "spotify" },
|
||||
]
|
||||
|
||||
# Custom security headers. What urls should your website be able to connect to?
|
||||
# You need to specify the CSP and the URLs associated with the directive.
|
||||
# Useful if you want to load remote content safely (embed YouTube videos, which needs frame-src, for example).
|
||||
# Default directive is self.
|
||||
# Default config, allows for https remote images and embedding YouTube and Vimeo content.
|
||||
# This configuration gets an A+ in Mozilla's Observatory: https://observatory.mozilla.org
|
||||
allowed_domains = [
|
||||
{ directive = "img-src", domains = ["'self'", "https://*"] },
|
||||
{ directive = "script-src", domains = ["'self'"] },
|
||||
{ directive = "style-src", domains = ["'self'"] },
|
||||
{ directive = "frame-src", domains = ["player.vimeo.com", "https://www.youtube-nocookie.com"] },
|
||||
]
|
||||
|
Reference in New Issue
Block a user