Skip to content

Commit

Permalink
simplify regex for cors origin
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Oct 4, 2020
1 parent f6adbbc commit ec0b3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/cors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
end

allow do
origins 'localhost:3000', /\Ahttps:\/\/*.datacite.org\z/
origins 'localhost:3000', /\.datacite\.org\z/

resource '*',
headers: :any,
Expand Down

0 comments on commit ec0b3a2

Please sign in to comment.