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
Context:
http://localhost:8080
http://localhost:3000
Rails.application.config.middleware.insert_before 0, Rack::Cors do allow do origins 'http://localhost:8080' resource '*', headers: :any, methods: %i[get post put patch delete options], credentials: true, expose: ['Set-Cookie'] end end
Rails.application.config.session_store :cookie_store, key: '_my_app_session', domain: :all, same_site: :none, secure: Rails.env.production?
withCredentials
session
session[:user_id] = user.id
Current behavior: The response header contains the Set-Cookie:
Set-Cookie
set-cookie: _my_app_session=<value>; path=/; httponly; samesite=none
But the browser does not store it in the Storage cookies
Expected behavior: The browser stores it in the Storage cookies
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Context:
http://localhost:8080
http://localhost:3000
. This is an API appwithCredentials
true that assign value to thesession
e.g.session[:user_id] = user.id
Current behavior:
The response header contains the
Set-Cookie
:But the browser does not store it in the Storage cookies
Expected behavior:
The browser stores it in the Storage cookies
The text was updated successfully, but these errors were encountered: