From af3434ab36d3c4a74710a715a6081eee8e165e27 Mon Sep 17 00:00:00 2001 From: y4ashida Date: Tue, 29 Mar 2016 16:46:40 +0900 Subject: [PATCH] Update readme for headers names --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5f57fcbcd..23233ee0d 100644 --- a/README.md +++ b/README.md @@ -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