We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with CORS setup and exposing special headers (using master branch):
config/initializers/cors.rb:7:in `block (2 levels) in <top (required)>': undefined method `headers_names' for DeviseTokenAuth:Module (NoMethodError)
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
I don't know why headers_names is undefined, but you can write its values. Like this:
allow do origins '*' resource '*', headers: :any, expose: ['access-token', 'expiry', 'token-type', 'uid', 'client'], methods: [:get, :post, :options, :delete, :put] end
(see. lib/devise_token_auth/engine.rb#L38-L42)
Seems like we have a proposed solution, so closing this for now
No branches or pull requests
Problem with CORS setup and exposing special headers (using master branch):
The text was updated successfully, but these errors were encountered: