File tree 3 files changed +4
-0
lines changed
firestore/src/platform/browser
3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,7 @@ export class WebChannelConnection extends RestConnection {
72
72
) : Promise < Resp > {
73
73
return new Promise ( ( resolve : Resolver < Resp > , reject : Rejecter ) => {
74
74
const xhr = new XhrIo ( ) ;
75
+ xhr . setWithCredentials ( true ) ;
75
76
xhr . listenOnce ( EventType . COMPLETE , ( ) => {
76
77
try {
77
78
switch ( xhr . getLastErrorCode ( ) ) {
Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ export class XhrIo {
74
74
getResponseJson ( ) : WebChannelError | object ;
75
75
76
76
listenOnce ( type : string , cb : ( param : unknown ) => void ) : void ;
77
+
78
+ setWithCredentials ( withCredentials : boolean ) : void ;
77
79
}
78
80
79
81
export interface WebChannelOptions {
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ goog.net.XhrIo.prototype['getResponseJson'] =
75
75
goog . net . XhrIo . prototype [ 'getResponseText' ] =
76
76
goog . net . XhrIo . prototype . getResponseText ;
77
77
goog . net . XhrIo . prototype [ 'send' ] = goog . net . XhrIo . prototype . send ;
78
+ goog . net . XhrIo . prototype [ 'setWithCredentials' ] = goog . net . XhrIo . prototype . setWithCredentials ;
78
79
79
80
module [ 'exports' ] [ 'createWebChannelTransport' ] =
80
81
goog . net . createWebChannelTransport ;
You can’t perform that action at this time.
0 commit comments