diff --git a/config/environments/development.rb b/config/environments/development.rb index 0d48a613d..a28191145 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -42,8 +42,6 @@ require "flipper/middleware/memoizer" config.middleware.use Flipper::Middleware::Memoizer - config.allowed_cors_origins = ["http://localhost:3000", "http://localhost:4200"] - # config.after_initialize do # Bullet.enable = true # Bullet.rails_logger = true diff --git a/config/environments/production.rb b/config/environments/production.rb index d11c878bd..57da5fd0e 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -81,7 +81,4 @@ require "flipper/middleware/memoizer" config.middleware.use Flipper::Middleware::Memoizer - - # enable specific origins for post actions - config.allowed_cors_origins = ["https://commons.datacite.org", "https://doi.datacite.org"] end diff --git a/config/environments/stage.rb b/config/environments/stage.rb index 0e130b52d..0dfa2e72f 100644 --- a/config/environments/stage.rb +++ b/config/environments/stage.rb @@ -79,7 +79,4 @@ require "flipper/middleware/memoizer" config.middleware.use Flipper::Middleware::Memoizer - - # enable specific origins for post actions - config.allowed_cors_origins = ["http://localhost:3000", "http://localhost:4200", "https://commons.stage.datacite.org", "https://doi.stage.datacite.org"] end