Fix links in CSP documentation [ci-skip]
rdoc links use square brackets for the URL part.
This commit is contained in:
parent
f6bc77f2b1
commit
0b851183e0
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
module ActionDispatch # :nodoc:
|
module ActionDispatch # :nodoc:
|
||||||
# Allows configuring a
|
# Allows configuring a
|
||||||
# {Content-Security-Policy}(https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy)
|
# {Content-Security-Policy}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy]
|
||||||
# to help protect against XSS and injection attacks.
|
# to help protect against XSS and injection attacks.
|
||||||
#
|
#
|
||||||
# Example global policy:
|
# Example global policy:
|
||||||
@ -224,7 +224,7 @@ def plugin_types(*types)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Enable the {report-uri}(https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-uri)
|
# Enable the {report-uri}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-uri]
|
||||||
# directive. Violation reports will be sent to the specified URI:
|
# directive. Violation reports will be sent to the specified URI:
|
||||||
#
|
#
|
||||||
# policy.report_uri "/csp-violation-report-endpoint"
|
# policy.report_uri "/csp-violation-report-endpoint"
|
||||||
@ -233,7 +233,7 @@ def report_uri(uri)
|
|||||||
@directives["report-uri"] = [uri]
|
@directives["report-uri"] = [uri]
|
||||||
end
|
end
|
||||||
|
|
||||||
# Specify asset types for which {Subresource Integrity}(https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)
|
# Specify asset types for which {Subresource Integrity}[https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity]
|
||||||
# is required:
|
# is required:
|
||||||
#
|
#
|
||||||
# policy.require_sri_for :script, :style
|
# policy.require_sri_for :script, :style
|
||||||
@ -250,7 +250,7 @@ def require_sri_for(*types)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Specify whether a {sandbox}(https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox)
|
# Specify whether a {sandbox}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox]
|
||||||
# should be enabled for the requested resource:
|
# should be enabled for the requested resource:
|
||||||
#
|
#
|
||||||
# policy.sandbox
|
# policy.sandbox
|
||||||
|
Loading…
Reference in New Issue
Block a user