mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 06:52:33 -05:00
add csp
This commit is contained in:
1 parent
f4426a8ee0
commit
b64a84a362
51 files changed
+725
-147
No files matched your search
@@ -31,6 +31,9 @@ module DocuSeal
|
||||
|
||||
config.exceptions_app = ->(env) { ErrorsController.action(:show).call(env) }
|
||||
|
||||
config.content_security_policy_nonce_generator = ->(_) { SecureRandom.base64(16) }
|
||||
config.content_security_policy_nonce_directives = %w[script-src]
|
||||
|
||||
config.action_view.frozen_string_literal = true
|
||||
|
||||
config.middleware.insert_before ActionDispatch::Static, Rack::Deflater
|
||||
|
||||
Reference in new issue
Block a user