Configure for ngrok

This commit is contained in:
Justin Edmund 2020-09-16 03:41:03 -07:00
parent 86bbe3a7d1
commit 703bcbdf9d
2 changed files with 2 additions and 1 deletions

View file

@ -1,5 +1,6 @@
Rails.application.configure do Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb. # Settings specified here will take precedence over those in config/application.rb.
config.hosts << "grid-api.ngrok.io"
# In the development environment your application's code is reloaded on # In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development # every request. This slows down response time but is perfect for development

View file

@ -7,7 +7,7 @@
Rails.application.config.middleware.insert_before 0, Rack::Cors do Rails.application.config.middleware.insert_before 0, Rack::Cors do
allow do allow do
origins '127.0.0.1:1234' origins ['127.0.0.1:1234', 'grid.ngrok.io', 'grid-api.ngrok.io']
resource '*', resource '*',
headers: :any, headers: :any,