Skip to content

Commit abd5419

Browse files
committed
Fix error to refer to 'pf_host' variable in development
1 parent 67bcf71 commit abd5419

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

config/environments/development.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@
7272

7373
# Uncomment if you wish to allow Action Cable access from any origin.
7474
# 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'
7578
config.action_cable.allowed_request_origins = ["https://#{pf_host}"]
7679

7780
# Raise error when a before_action's only/except options reference missing actions.
@@ -85,8 +88,4 @@
8588
config.action_dispatch.default_headers = {
8689
'X-Frame-Options' => "ALLOW-FROM #{pf_domain}"
8790
}
88-
89-
pf_host = "#{ENV['CODESPACE_NAME']}-3000.#{pf_domain}"
90-
config.hosts << pf_host
91-
config.hosts << '.ngrok.io'
9291
end

0 commit comments

Comments
 (0)