Skip to content

Commit

Permalink
fix: change credentials mode from "omit" to "same-origin" when set to…
Browse files Browse the repository at this point in the history
… false

Signed-off-by: Lukas Reining <[email protected]>
  • Loading branch information
lukas-reining committed Dec 15, 2024
1 parent 6e35837 commit 061ebd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eventsource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export class CustomEventSource extends EventTarget implements EventSource {
Accept: ContentTypeEventStream,
},
cache: 'no-store',
credentials: this.withCredentials ? 'include' : 'omit',
credentials: this.withCredentials ? 'include' : 'same-origin',
signal: this.abortController?.signal,
};

Expand Down

0 comments on commit 061ebd1

Please sign in to comment.