Move CORS definitions to env variable
This commit is contained in:
parent
e982dec63d
commit
47576dff36
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
Rails.application.config.middleware.insert_before 0, Rack::Cors do
|
||||
allow do
|
||||
origins ['127.0.0.1:1234', 'siero-app.herokuapp.com']
|
||||
origins ENV.fetch("CORS_ORIGIN","").split(",")
|
||||
|
||||
resource '*',
|
||||
headers: :any,
|
||||
|
|
|
|||
Loading…
Reference in a new issue