Skip to content

Commit

Permalink
Fix links in CSP documentation [ci-skip]
Browse files Browse the repository at this point in the history
rdoc links use square brackets for the URL part.
  • Loading branch information
p8 committed Feb 17, 2022
1 parent f6bc77f commit 0b85118
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -4,7 +4,7 @@

module ActionDispatch # :nodoc:
# 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.
#
# Example global policy:
Expand Down Expand Up @@ -224,7 +224,7 @@ def plugin_types(*types)
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:
#
# policy.report_uri "/csp-violation-report-endpoint"
Expand All @@ -233,7 +233,7 @@ def report_uri(uri)
@directives["report-uri"] = [uri]
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:
#
# policy.require_sri_for :script, :style
Expand All @@ -250,7 +250,7 @@ def require_sri_for(*types)
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:
#
# policy.sandbox
Expand Down

0 comments on commit 0b85118

Please sign in to comment.