From 7ac49e40dd194d4c20d9dcf85b57635387453ed0 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Mon, 5 Oct 2020 08:07:17 +0200 Subject: [PATCH] simplify cors --- config/initializers/cors.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/config/initializers/cors.rb b/config/initializers/cors.rb index 148a777b8..5644d92d4 100644 --- a/config/initializers/cors.rb +++ b/config/initializers/cors.rb @@ -11,14 +11,6 @@ allow do origins '*' - resource '*', - headers: :any, - methods: [:get, :post, :put, :patch, :delete, :options, :head] - end - - allow do - origins 'localhost:3000', /\.datacite\.org\z/ - resource '*', headers: :any, expose: ["X-Credential-Username", "X-Anonymous-Consumer"],