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
cors
Only by allowing specific headers I was able to make an authorised request to the api.
headers
Rails.application.config.middleware.insert_before 0, Rack::Cors do allow do origins 'localhost:4200', 'http://localhost:4200/' resource '*', headers: ['Authorization', 'X-Refresh-Token', 'X-CSRF-Token'], expose: ['Authorization', 'X-Refresh-Token', 'X-CSRF-Token'], credentials: true, max_age: 600, methods: [:get, :post, :put, :patch, :delete, :options, :head] end end
The text was updated successfully, but these errors were encountered:
max_age is not needed.
max_age
Sorry, something went wrong.
No branches or pull requests
Only by allowing specific
headers
I was able to make an authorised request to the api.The text was updated successfully, but these errors were encountered: