Add support for using the webpack-dev-server
This commit is contained in:
parent
49bdabe889
commit
2594f926e7
1 changed files with 6 additions and 0 deletions
6
config/initializers/content_security_policy.rb
Normal file
6
config/initializers/content_security_policy.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
||||
Rails.application.config.content_security_policy do |policy|
|
||||
policy.connect_src :self, :https, "http://localhost:3035", "ws://localhost:3035" if Rails.env.development?
|
||||
end
|
Loading…
Reference in a new issue