File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
actionpack/lib/action_dispatch/http Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
module ActionDispatch # :nodoc:
6
6
# 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]
8
8
# to help protect against XSS and injection attacks.
9
9
#
10
10
# Example global policy:
@@ -224,7 +224,7 @@ def plugin_types(*types)
224
224
end
225
225
end
226
226
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]
228
228
# directive. Violation reports will be sent to the specified URI:
229
229
#
230
230
# policy.report_uri "/csp-violation-report-endpoint"
@@ -233,7 +233,7 @@ def report_uri(uri)
233
233
@directives [ "report-uri" ] = [ uri ]
234
234
end
235
235
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]
237
237
# is required:
238
238
#
239
239
# policy.require_sri_for :script, :style
@@ -250,7 +250,7 @@ def require_sri_for(*types)
250
250
end
251
251
end
252
252
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]
254
254
# should be enabled for the requested resource:
255
255
#
256
256
# policy.sandbox
You can’t perform that action at this time.
0 commit comments