Skip to content

Commit 87720f8

Browse files
committed
Exec 'bin/rails app:update' for config/initializers/assets.rb and CSP
1 parent ea5cd29 commit 87720f8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

config/initializers/assets.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Be sure to restart your server when you modify this file.
22

33
# Version of your assets, change this if you want to expire all your assets.
4-
Rails.application.config.assets.version = '1.0'
4+
Rails.application.config.assets.version = "1.0"
55

66
# Add additional assets to the asset load path.
77
# Rails.application.config.assets.paths << Emoji.images_path

config/initializers/content_security_policy.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
# # policy.report_uri "/csp-violation-report-endpoint"
1717
# end
1818
#
19-
# # Generate session nonces for permitted importmap and inline scripts
19+
# # Generate session nonces for permitted importmap, inline scripts, and inline styles.
2020
# config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s }
21-
# config.content_security_policy_nonce_directives = %w(script-src)
21+
# config.content_security_policy_nonce_directives = %w(script-src style-src)
2222
#
2323
# # Report violations without enforcing the policy.
2424
# # config.content_security_policy_report_only = true

0 commit comments

Comments
 (0)