Fix code style
This commit is contained in:
parent
2710dbbe3e
commit
f85f23ac73
2 changed files with 8 additions and 4 deletions
|
@ -22,6 +22,10 @@ end
|
||||||
# Rails.application.config.content_security_policy_nonce_generator =
|
# Rails.application.config.content_security_policy_nonce_generator =
|
||||||
# -> request { SecureRandom.base64(16) }
|
# -> request { SecureRandom.base64(16) }
|
||||||
|
|
||||||
|
# Set the nonce only to specific directives
|
||||||
|
# Rails.application.config.content_security_policy_nonce_directives =
|
||||||
|
# %w(script-src)
|
||||||
|
|
||||||
# Report CSP violations to a specified URI
|
# Report CSP violations to a specified URI
|
||||||
# For further information see the following documentation:
|
# For further information see the following documentation:
|
||||||
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
|
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
# Be sure to restart your server when you modify this file.
|
# Be sure to restart your server when you modify this file.
|
||||||
|
|
||||||
# This file contains settings for ActionController::ParamsWrapper which
|
# This file contains settings for ActionController::ParamsWrapper
|
||||||
# is enabled by default.
|
# which is enabled by default.
|
||||||
|
|
||||||
# Enable parameter wrapping for JSON. You can disable this by setting :format
|
# Enable parameter wrapping for JSON.
|
||||||
# to an empty array.
|
# You can disable this by setting :format to an empty array.
|
||||||
ActiveSupport.on_load(:action_controller) do
|
ActiveSupport.on_load(:action_controller) do
|
||||||
wrap_parameters format: [:json]
|
wrap_parameters format: [:json]
|
||||||
end
|
end
|
||||||
|
|
Reference in a new issue