Skip to content

Commit

Permalink
Update readme for headers names
Browse files Browse the repository at this point in the history
  • Loading branch information
ash1day committed Mar 29, 2016
1 parent 3a0a126 commit af3434a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,15 @@ module YourApp
allow do
origins '*'
resource '*',
:headers => :any,
:expose => ['access-token', 'expiry', 'token-type', 'uid', 'client'],
:methods => [:get, :post, :options, :delete, :put]
headers: :any,
expose: [
DeviseTokenAuth.headers_names[:'access-token'],
DeviseTokenAuth.headers_names[:'client'],
DeviseTokenAuth.headers_names[:'expiry'],
DeviseTokenAuth.headers_names[:'uid'],
DeviseTokenAuth.headers_names[:'token-type']
],
methods: [:get, :post, :options, :delete, :put]
end
end
end
Expand Down

0 comments on commit af3434a

Please sign in to comment.