Skip to content

Commit

Permalink
Add expose-headers
Browse files Browse the repository at this point in the history
  • Loading branch information
emman27 committed Sep 23, 2016
1 parent 5068bb0 commit 6bdbe3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class Application < Rails::Application
origins '*'
resource '*',
:headers => ['Origin, Content-Type, Accept, Authorization, access-token, bearer, uid, expiry, client, If-Modified-Since, token-type'],
:methods => ['GET, POST, PATCH, DELETE']
:methods => [:get, :post, :patch, :delete, :options],
:expose => ['access-token, client, expiry, uid, token-type']
end
end
end
Expand Down

0 comments on commit 6bdbe3c

Please sign in to comment.