DEV Community

Discussion on: Guide to devise_token_auth: Simple Authentication in Rails API

Collapse
 
mirmayne profile image
Info Comment hidden by post author - thread only visible in this permalink
Daveyon Mayne 😻

Gonna add this as I'm sure many will find this useful. ✊🏽

Rails.application.config.middleware.insert_before 0, Rack::Cors do
    [...]
      expose: ['access-token', 'uid', 'client'],
    [...]
  end
end
Enter fullscreen mode Exit fullscreen mode

Some comments have been hidden by the post's author - find out more