Skip to content

Commit

Permalink
expose authorization header
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrKahl committed Sep 16, 2020
1 parent 44e00fd commit 213eed5
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 213eed5

Please sign in to comment.