✨ feat: allow disabling CSP, following the hierarchy
Introduces new option `enable_csp`, true by default. Can be set on a page, section or globally.
This commit is contained in:
@@ -263,6 +263,10 @@ allowed_domains = [
|
||||
{ directive = "frame-src", domains = ["player.vimeo.com", "https://www.youtube-nocookie.com"] },
|
||||
]
|
||||
|
||||
# Enable the CSP directives configured (or default).
|
||||
# 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
|
||||
enable_csp = true
|
||||
|
||||
# Custom subset of characters for the header.
|
||||
# If set to true, the `static/custom_subset.css` file will be loaded first.
|
||||
# This avoids a flashing text issue in Firefox.
|
||||
|
Reference in New Issue
Block a user