1
0
Fork 0

Fix code style

This commit is contained in:
Alex Kotov 2020-01-16 21:04:58 +05:00
parent 2710dbbe3e
commit f85f23ac73
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 8 additions and 4 deletions

View file

@ -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

View file

@ -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