Marten::Conf::GlobalSettings::ContentSecurityPolicy
Allows to configure settings related to the Content-Security-Policy middleware.
Constructors
new
SourceInstance methods
base_uri=(arg)
Sourceblock_all_mixed_content=(arg)
Sourcechild_src=(arg)
Sourceconnect_src=(arg)
Sourcedefault_policy=(default_policy : Marten::HTTP::ContentSecurityPolicy)
Allows to set the default Content-Security-Policy.
default_src=(arg)
Sourcefont_src=(arg)
Sourceform_action=(arg)
Sourceframe_ancestors=(arg)
Sourceframe_src=(arg)
Sourceimg_src=(arg)
Sourcemanifest_src=(arg)
Sourcemedia_src=(arg)
Sourcenonce_directives
Returns an array of directives where a dynamically-generated nonce will be included.
For example, if this setting is set to ["script-src"], a nonce-<b64-value> value will be added to the
script-src directive.
Allows to set the array of directives where a dynamically-generated nonce will be included.
object_src=(arg)
Sourceplugin_types=(arg)
Sourceprefetch_src=(arg)
Sourcereport_only=(report_only : Bool)
Allows set whether to report violations of the policy without enforcing it.
report_to=(arg)
Sourcereport_uri=(arg)
Sourcerequire_sri_for=(arg)
Sourcesandbox=(arg)
Sourcescript_src=(arg)
Sourcescript_src_attr=(arg)
Sourcescript_src_elem=(arg)
Sourcestyle_src=(arg)
Sourcestyle_src_attr=(arg)
Sourcestyle_src_elem=(arg)
Sourceupgrade_insecure_requests=(arg)
Sourceworker_src=(arg)
Source