Commit edd17c3

mo khan <mo@mokhan.ca>
2021-07-11 02:36:38
fix: use a pattern to match all ngrok hosts
1 parent 336136b
Changed files (2)
config
environments
config/environments/development.rb
@@ -59,5 +59,5 @@ Rails.application.configure do
   # Uncomment if you wish to allow Action Cable access from any origin.
   # config.action_cable.disable_request_forgery_protection = true
 
-  config.hosts << ENV.fetch('NGROK_HOST')
+  config.hosts << /[a-z0-9]+\.ngrok\.io/
 end
.env
@@ -1,1 +0,0 @@
-NGROK_HOST=invalid.ngrok.io