mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 12:44:00 +08:00
e11c6ffa89
Plus, ensure :none is stripped, it cannot be combined with other sources
10 lines
228 B
Ruby
10 lines
228 B
Ruby
# name: csp_extension
|
|
# about: Fixture plugin that extends default CSP
|
|
# version: 1.0
|
|
# authors: xrav3nz
|
|
|
|
extend_content_security_policy(
|
|
script_src: ['https://from-plugin.com'],
|
|
object_src: ['https://test-stripping.com']
|
|
)
|