File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
packages/remote-config/src/client Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -82,16 +82,14 @@ export class RestClient implements RemoteConfigFetchClient {
82
82
83
83
const url = `${ urlBase } /v1/projects/${ this . projectId } /namespaces/${ this . namespace } :fetch?key=${ this . apiKey } ` ;
84
84
85
- const fetchType = request . fetchType || 'BASE' ;
86
- const fetchAttempt = request . fetchAttempt || 1 ;
87
-
88
85
const headers = {
89
86
'Content-Type' : 'application/json' ,
90
87
'Content-Encoding' : 'gzip' ,
91
88
// Deviates from pure decorator by not passing max-age header since we don't currently have
92
89
// service behavior using that header.
93
- 'If-None-Match' : request . eTag || '*' ,
94
- 'X_FIREBASE_RC_FETCH_TYPE' : `${ fetchType } /${ fetchAttempt } `
90
+ 'If-None-Match' : request . eTag || '*'
91
+ // TODO: Add this header once CORS error is fixed internally.
92
+ //'X-Firebase-RC-Fetch-Type': `${fetchType}/${fetchAttempt}`
95
93
} ;
96
94
97
95
const requestBody : FetchRequestBody = {
You can’t perform that action at this time.
0 commit comments