Skip to content

Commit

Permalink
Change streaming API host to not be overridden to localhost in develo…
Browse files Browse the repository at this point in the history
…pment mode (#28557)
  • Loading branch information
ClearlyClaire committed Jan 3, 2024
1 parent 7cce2a4 commit bd415af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/initializers/1_hosts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
if Rails.env.production?
"ws#{https ? 's' : ''}://#{web_host}"
else
"ws://#{ENV['REMOTE_DEV'] == 'true' ? host.split(':').first : 'localhost'}:4000"
"ws://#{host.split(':').first}:4000"
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/requests/content_security_policy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"form-action 'self'",
"child-src 'self' blob: https://cb6e6126.ngrok.io",
"worker-src 'self' blob: https://cb6e6126.ngrok.io",
"connect-src 'self' data: blob: https://cb6e6126.ngrok.io ws://localhost:4000",
"connect-src 'self' data: blob: https://cb6e6126.ngrok.io ws://cb6e6126.ngrok.io:4000",
"script-src 'self' https://cb6e6126.ngrok.io 'wasm-unsafe-eval'"
)
end
Expand Down

0 comments on commit bd415af

Please sign in to comment.