We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67bcf71 commit abd5419Copy full SHA for abd5419
config/environments/development.rb
@@ -72,6 +72,9 @@
72
73
# Uncomment if you wish to allow Action Cable access from any origin.
74
# config.action_cable.disable_request_forgery_protection = true
75
+ pf_host = "#{ENV['CODESPACE_NAME']}-3000.#{pf_domain}"
76
+ config.hosts << pf_host
77
+ config.hosts << '.ngrok.io'
78
config.action_cable.allowed_request_origins = ["https://#{pf_host}"]
79
80
# Raise error when a before_action's only/except options reference missing actions.
@@ -85,8 +88,4 @@
85
88
config.action_dispatch.default_headers = {
86
89
'X-Frame-Options' => "ALLOW-FROM #{pf_domain}"
87
90
}
-
- pf_host = "#{ENV['CODESPACE_NAME']}-3000.#{pf_domain}"
- config.hosts << pf_host
91
- config.hosts << '.ngrok.io'
92
end
0 commit comments