1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-26 20:54:21 +01:00

(bug) Refused to connect to wss://localhost:3035/ws because it violates the following Content Security Policy directive

This commit is contained in:
Sylvain 2022-03-29 14:12:26 +02:00
parent 7e9745a761
commit 2471f95ae8
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,8 @@
- Updated eslint to v8 and eslint related packages to their latest versions
- Webpack overlay will now report eslint issues
- Linted all code according to eslint rules
- Fix a bug: Refused to connect to 'wss://localhost:3035/ws' when using a https tunnel in development mode
## v5.3.7 2022 March 28

View File

@ -7,7 +7,7 @@
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
Rails.application.config.content_security_policy do |policy| # # 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?
policy.connect_src :self, :https, :wss, 'http://localhost:3035', 'ws://localhost:3035' if Rails.env.development?
# policy.default_src :self, :https
# policy.font_src :self, :https, :data