Skip to content

Commit af3434a

Browse files
committed
Update readme for headers names
1 parent 3a0a126 commit af3434a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

README.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,15 @@ module YourApp
325325
allow do
326326
origins '*'
327327
resource '*',
328-
:headers => :any,
329-
:expose => ['access-token', 'expiry', 'token-type', 'uid', 'client'],
330-
:methods => [:get, :post, :options, :delete, :put]
328+
headers: :any,
329+
expose: [
330+
DeviseTokenAuth.headers_names[:'access-token'],
331+
DeviseTokenAuth.headers_names[:'client'],
332+
DeviseTokenAuth.headers_names[:'expiry'],
333+
DeviseTokenAuth.headers_names[:'uid'],
334+
DeviseTokenAuth.headers_names[:'token-type']
335+
],
336+
methods: [:get, :post, :options, :delete, :put]
331337
end
332338
end
333339
end

0 commit comments

Comments
 (0)