-
-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
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
path is always "/" in set-cookie within scope #237
Comments
Thank you! @jumpnbrownweasel I understand that you are referring to a scope in the sense of the router, that is
What you are probably looking for is a scope for your entire app, which in Dream's terms is the site prefix, implemented by
I'm not sure if this is the right API -- please comment if you have an opinion! There should probably be a link in the docs from |
I'm using [Dream.set_secret secret; Dream.cookie_sessions] within a scope ("/app") and this works in the sense that the set-cookie header is not output until a request in this scope is made. However, the path in the set-cookie header is always "/", so all subsequent requests (including outside the scope) send the cookie.
Perhaps I have a misunderstanding (I'm new at this) but I expected the path in the set-cookie to be the scope's path ("/app") so that cookies are only sent for requests in that scope. Maybe this is harmless, but I'm not sure.
The text was updated successfully, but these errors were encountered: