-
Notifications
You must be signed in to change notification settings - Fork 764
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
Add ability to send cookies cross domain #176
Comments
This feature is in the internal version of the library. We will be glad to add it here. How do you envision using this? Should this be a call-level option? Or should it be service/stub level? |
Service/stub level. It's a no-op if calls are from the same origin. |
Thanks for the fast reply! Sevice/stub level works for me. |
Any updates on this? We're currently blocked from going to production due to this issue. |
Added an option in #604 to allow clients to enable
But before I cut the next release including this fix, is it possible that someone can verify if this works for your use case? Coz I received a report that even with #604, cookie is not being attached to a cross-domain request. So I was wondering if we are still missing something. |
I'm trying to do this with envoy but nothing seems to work like expected. |
Aha this solve my initial problem where the case is browser could read & receive Set-Cookie response header but can not store it. thx @stanley-cheung |
@stanley-cheung i've enabled
|
As far as I understand, there is no way to send cross domain cookies with the current grpc-web client implementation. Looking at the code, I see that grpc-web is using xhrio to send the requests to the server but I don't see any settable property nor option in the grpc client that would enable the xhrio "withCredentials" flag.
Would it be possible to add this feature? It would be really helpful for our current scenario.
The text was updated successfully, but these errors were encountered: