Skip to content

Commit 02d878a

Browse files
committed
Allow ngrok subdomains only in development mode:
cf. Railsガイド - Rails アプリケーションを設定する https://railsguides.jp/configuring.html#ミドルウェアを設定する
1 parent 605396c commit 02d878a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

config/environments/development.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686

8787
pf_host = "#{ENV['CODESPACE_NAME']}-3000.#{pf_domain}"
8888
config.hosts << pf_host
89+
config.hosts << '.ngrok.io'
8990

9091
config.action_cable.allowed_request_origins = ["https://#{pf_host}"]
9192
end

0 commit comments

Comments
 (0)