We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7db74e6 commit 796828dCopy full SHA for 796828d
packages/firestore/src/platform_browser/webchannel_connection.ts
@@ -203,6 +203,10 @@ export class WebChannelConnection implements Connection {
203
// parameter.
204
httpSessionIdParam: 'gsessionid',
205
initMessageHeaders: {},
206
+ // Send our custom headers as a '$httpHeaders=' url param to avoid CORS
207
+ // preflight round-trip. This is formally defined here:
208
+ // https://github.com/google/closure-library/blob/b0e1815b13fb92a46d7c9b3c30de5d6a396a3245/closure/goog/net/rpc/httpcors.js#L40
209
+ httpHeadersOverwriteParam: '$httpHeaders',
210
sendRawJson: true,
211
supportsCrossDomainXhr: true
212
};
0 commit comments