You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A call to native EventSource with no init dict causes the browser to pass along HTTP-only secure cookies to requests on the same origin. That is the behavior I want. With your implementation 'omit' is the default, which blocks this. I can pass 'true' to withCredentials, but then the value passed to fetch for credentials is include, which is overly permissive.
I apologize if this suggestion is off-base, or against the spec. Thanks for your consideration.
Best,
Robert
The text was updated successfully, but these errors were encountered:
Hey @oatkiller i fixed this in #27.
This has been released as breaking change to be sure that the changed cookie behavior is made clear to the users. https://github.com/lukas-reining/eventsource/releases/tag/v2.0.0
Thank you again for the feedback! Please let me know if there is anything else to consider from your side with this change or anything else.
eventsource/src/eventsource.ts
Line 134 in 6e35837
A call to native
EventSource
with no init dict causes the browser to pass along HTTP-only secure cookies to requests on the same origin. That is the behavior I want. With your implementation 'omit' is the default, which blocks this. I can pass 'true' towithCredentials
, but then the value passed to fetch forcredentials
isinclude
, which is overly permissive.I apologize if this suggestion is off-base, or against the spec. Thanks for your consideration.
Best,
Robert
The text was updated successfully, but these errors were encountered: