rack-cors Questions

2

Solved

I have a Rails 5 API only app and want to send cookies in the response of a JSON request. When I use ActionDispatch::Cookies to set a cookie in the response of the request it doesn't set Set-Cookie...
Wendiwendie asked 2/8, 2020 at 14:22

2

I am working on web app that use Reactjs as a front-end and Rails5 api only app as a back-end This is the data that i send to the server as Request payload ------WebKitFormBoundaryCD1o71UpVNpU4v8...
Whitaker asked 18/11, 2016 at 20:2

1

Solved

I'm configuring CORS settings for my rails server - I want to be able to test my backend when I run it locally, using a frontend on localhost. But, to my understanding, CORS is an important securit...
Sideslip asked 27/7, 2020 at 10:51

2

Solved

I am using the rack-cors gem with a Rail 5.1 API. I have the following initializer as per the documentation: config/initializers/cors.rb module Api Rails.application.config.middleware.insert_be...
Kepler asked 23/4, 2018 at 16:17

2

Solved

I'm implementing CORS in my rails application using rack-cors gem for it, but I'm not sure how can i define different resources for different origins. I need something like that: config.middlewar...
Gladden asked 11/1, 2017 at 11:10

1

Solved

I am on Rails5 and I want to allow CORS on one of my route. Here is how I can allow CORS for all my route, but is there a way to only whitelist for one endpoint? config.middleware.insert_before 0...
Limpid asked 15/4, 2017 at 14:11
1

© 2022 - 2024 — McMap. All rights reserved.