Skip to content

Commit

Permalink
simplify cors
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Oct 5, 2020
1 parent ec0b3a2 commit 7ac49e4
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions config/initializers/cors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit 7ac49e4

Please sign in to comment.