Skip to content

Commit

Permalink
Allow Turbo progress bar style to be loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
edavey committed Oct 9, 2024
1 parent 0f03f0e commit b203b1d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/initializers/content_security_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
policy.img_src :self, :https, :data
policy.object_src :none
policy.script_src :self, :https
policy.style_src :self, :https

# allow styling for the Turbo progress bar
policy.style_src("'sha256-WAyOw4V+FqDc35lQPyRADLBWbuNK8ahvYEaQIYF1+Ps='", :self, :https)

# If you are using webpack-dev-server then specify webpack-dev-server host
# policy.connect_src :self, :https, "http://localhost:3035", "ws://localhost:3035" if Rails.env.development?

Expand Down

0 comments on commit b203b1d

Please sign in to comment.