Skip to content

Commit 70ce7f9

Browse files
Merge pull request rails#44464 from p8/docs/fix-csp-links
Fix links in CSP documentation [ci-skip]
2 parents f6bc77f + 0b85118 commit 70ce7f9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

actionpack/lib/action_dispatch/http/content_security_policy.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
module ActionDispatch # :nodoc:
66
# Allows configuring a
7-
# {Content-Security-Policy}(https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy)
7+
# {Content-Security-Policy}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy]
88
# to help protect against XSS and injection attacks.
99
#
1010
# Example global policy:
@@ -224,7 +224,7 @@ def plugin_types(*types)
224224
end
225225
end
226226

227-
# Enable the {report-uri}(https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-uri)
227+
# Enable the {report-uri}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-uri]
228228
# directive. Violation reports will be sent to the specified URI:
229229
#
230230
# policy.report_uri "/csp-violation-report-endpoint"
@@ -233,7 +233,7 @@ def report_uri(uri)
233233
@directives["report-uri"] = [uri]
234234
end
235235

236-
# Specify asset types for which {Subresource Integrity}(https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity)
236+
# Specify asset types for which {Subresource Integrity}[https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity]
237237
# is required:
238238
#
239239
# policy.require_sri_for :script, :style
@@ -250,7 +250,7 @@ def require_sri_for(*types)
250250
end
251251
end
252252

253-
# Specify whether a {sandbox}(https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox)
253+
# Specify whether a {sandbox}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox]
254254
# should be enabled for the requested resource:
255255
#
256256
# policy.sandbox

0 commit comments

Comments
 (0)