mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
FEATURE: allow extending CSP base-uri and object-src
Plus, ensure :none is stripped, it cannot be combined with other sources
This commit is contained in:
@ -4,5 +4,6 @@
|
||||
# authors: xrav3nz
|
||||
|
||||
extend_content_security_policy(
|
||||
script_src: ['https://from-plugin.com']
|
||||
script_src: ['https://from-plugin.com'],
|
||||
object_src: ['https://test-stripping.com']
|
||||
)
|
||||
|
Reference in New Issue
Block a user