Skip to content

Commit

Permalink
Merge commit '213eed58a8b412c21b1d0d03afc35669801ec009'
Browse files Browse the repository at this point in the history
# Conflicts:
#	README.md
  • Loading branch information
simonfranzen committed Sep 18, 2020
2 parents 0d5f374 + 213eed5 commit 6ff823c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions config/initializers/cors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
allow do
origins ENV['CLIENT_URL'] ? ENV['CLIENT_URL'].split(',').map(&:strip) : '0.0.0.0:8000'

# origins '*'
resource '*',
headers: :any,
methods: %i[get post put patch delete options head],
credentials: true
:headers => :any,
:expose => ['Authorization'],
:methods => [:get, :post, :options, :delete, :put]
end
end

0 comments on commit 6ff823c

Please sign in to comment.