From ec0b3a2fb424e6b61f2c6c1e9d89b2002eb1c6a4 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Sun, 4 Oct 2020 16:53:23 +0200 Subject: [PATCH] simplify regex for cors origin --- config/initializers/cors.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/cors.rb b/config/initializers/cors.rb index 671c7a046..148a777b8 100644 --- a/config/initializers/cors.rb +++ b/config/initializers/cors.rb @@ -17,7 +17,7 @@ end allow do - origins 'localhost:3000', /\Ahttps:\/\/*.datacite.org\z/ + origins 'localhost:3000', /\.datacite\.org\z/ resource '*', headers: :any,