mirror of
https://github.com/welpo/tabi.git
synced 2025-12-14 19:58:44 +01:00
🐛 fix(CSP): Add cdn.jsdelivr.net back to media-src
This was needed after all
This commit is contained in:
parent
e48088626e
commit
349b22790a
1 changed files with 3 additions and 1 deletions
|
|
@ -171,6 +171,7 @@ post_listing_date = "date"
|
|||
|
||||
# Enable iine like buttons on all posts: https://iine.to/
|
||||
# Can be set at page or section levels, following the hierarchy: page > section > config. See: https://welpo.github.io/tabi/blog/mastering-tabi-settings/#settings-hierarchy
|
||||
# Note: Needs "https://cdn.jsdelivr.net/" at the directive = "script-src" for CSP
|
||||
iine = true
|
||||
iine_icon = "thumbs_up" # See https://iine.to/#customise
|
||||
# Unify like counts across all language versions of the same page.
|
||||
|
|
@ -352,10 +353,11 @@ footer_menu = [
|
|||
# Default config, allows for https remote images and embedding YouTube and Vimeo content.
|
||||
# This configuration (along with the right webserver settings) gets an A+ in Mozilla's Observatory: https://observatory.mozilla.org
|
||||
# Note: to use a Zola built-in syntax highlighting theme, allow unsafe-inline for style-src.
|
||||
# Note: cdn.jsdelivr.net/ is used in this deployment to show a video as well as load iine
|
||||
allowed_domains = [
|
||||
{ directive = "font-src", domains = ["'self'", "data:"] },
|
||||
{ directive = "img-src", domains = ["'self'", "https://*", "data:"] },
|
||||
{ directive = "media-src", domains = ["'self'"] },
|
||||
{ directive = "media-src", domains = ["'self'", "https://cdn.jsdelivr.net/"] },
|
||||
{ directive = "script-src", domains = ["'self'", "https://cdn.jsdelivr.net/"] },
|
||||
{ directive = "style-src", domains = ["'self'"] },
|
||||
{ directive = "frame-src", domains = ["player.vimeo.com", "https://www.youtube-nocookie.com"] },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue