discourse/spec/fixtures/plugins/csp_extension/plugin.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
377 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
# name: csp_extension
# about: Fixture plugin that extends default CSP
# version: 1.0
# authors: xrav3nz
extend_content_security_policy(
script_src: %w[https://from-plugin.com /local/path],
object_src: ["https://test-stripping.com"],
frame_ancestors: ["https://frame-ancestors-plugin.ext"],
manifest_src: ["https://manifest-src.com"],
)