Skip to content

Commit 494af7d

Browse files
committed
Adding a TODO for X-Firebase-RC-Fetch-Type header
1 parent 11077d8 commit 494af7d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/remote-config/src/client/rest_client.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,14 @@ export class RestClient implements RemoteConfigFetchClient {
8282

8383
const url = `${urlBase}/v1/projects/${this.projectId}/namespaces/${this.namespace}:fetch?key=${this.apiKey}`;
8484

85-
const fetchType = request.fetchType || 'BASE';
86-
const fetchAttempt = request.fetchAttempt || 1;
87-
8885
const headers = {
8986
'Content-Type': 'application/json',
9087
'Content-Encoding': 'gzip',
9188
// Deviates from pure decorator by not passing max-age header since we don't currently have
9289
// 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}`
9593
};
9694

9795
const requestBody: FetchRequestBody = {

0 commit comments

Comments
 (0)