Configure for ngrok
This commit is contained in:
parent
86bbe3a7d1
commit
703bcbdf9d
2 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
Rails.application.configure do
|
||||
# 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
|
||||
# every request. This slows down response time but is perfect for development
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
Rails.application.config.middleware.insert_before 0, Rack::Cors do
|
||||
allow do
|
||||
origins '127.0.0.1:1234'
|
||||
origins ['127.0.0.1:1234', 'grid.ngrok.io', 'grid-api.ngrok.io']
|
||||
|
||||
resource '*',
|
||||
headers: :any,
|
||||
|
|
|
|||
Loading…
Reference in a new issue