8
8
module ActionDispatch # :nodoc:
9
9
# # Action Dispatch Content Security Policy
10
10
#
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)
13
12
# response header to help protect against XSS and
14
13
# injection attacks.
15
14
#
@@ -227,8 +226,7 @@ def plugin_types(*types)
227
226
end
228
227
end
229
228
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)
232
230
# directive. Violation reports will be sent to the
233
231
# specified URI:
234
232
#
@@ -238,8 +236,7 @@ def report_uri(uri)
238
236
@directives [ "report-uri" ] = [ uri ]
239
237
end
240
238
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:
243
240
#
244
241
# policy.require_sri_for :script, :style
245
242
#
@@ -255,8 +252,7 @@ def require_sri_for(*types)
255
252
end
256
253
end
257
254
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)
260
256
# should be enabled for the requested resource:
261
257
#
262
258
# policy.sandbox
0 commit comments