Skip to content

Commit 3a91c80

Browse files
authored
Merge pull request rails#53222 from seanpdoyle/csp-docs-links
Fix markdown links in Content Security Policy docs [ci skip]
2 parents f481602 + ff6e308 commit 3a91c80

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

actionpack/lib/action_dispatch/http/content_security_policy.rb

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
module ActionDispatch # :nodoc:
99
# # Action Dispatch Content Security Policy
1010
#
11-
# Configures the HTTP [Content-Security-Policy]
12-
# (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy)
11+
# Configures the HTTP [Content-Security-Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy)
1312
# response header to help protect against XSS and
1413
# injection attacks.
1514
#
@@ -227,8 +226,7 @@ def plugin_types(*types)
227226
end
228227
end
229228

230-
# Enable the [report-uri]
231-
# (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-uri)
229+
# Enable the [report-uri](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/report-uri)
232230
# directive. Violation reports will be sent to the
233231
# specified URI:
234232
#
@@ -238,8 +236,7 @@ def report_uri(uri)
238236
@directives["report-uri"] = [uri]
239237
end
240238

241-
# Specify asset types for which [Subresource Integrity]
242-
# (https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) is required:
239+
# Specify asset types for which [Subresource Integrity](https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity) is required:
243240
#
244241
# policy.require_sri_for :script, :style
245242
#
@@ -255,8 +252,7 @@ def require_sri_for(*types)
255252
end
256253
end
257254

258-
# Specify whether a [sandbox]
259-
# (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox)
255+
# Specify whether a [sandbox](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox)
260256
# should be enabled for the requested resource:
261257
#
262258
# policy.sandbox

0 commit comments

Comments
 (0)