1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

native fetch with proxy support on node api

This commit is contained in:
Kyle Spearrin
2019-06-24 11:07:26 -04:00
parent 6d82fb5bbc
commit bc5a6e02c1
8 changed files with 78 additions and 14 deletions

View File

@@ -897,6 +897,10 @@ export class ApiService implements ApiServiceAbstraction {
request.headers.set('Cache-Control', 'no-cache');
request.headers.set('Pragma', 'no-cache');
}
return this.nativeFetch(request);
}
nativeFetch(request: Request): Promise<Response> {
return fetch(request);
}