feat: 🎸 add failover header to Infura
This commit is contained in:
parent
ad5f1c5fc7
commit
d2e8f2d439
@ -199,6 +199,7 @@ export class InfuraProvider extends JsonRpcProvider implements CommunityResourca
|
||||
|
||||
const request = new FetchRequest(`https:/\/${ getHost(network.name) }/v3/${ projectId }`);
|
||||
request.allowGzip = true;
|
||||
request.setHeader('Enable-Failover', 'true');
|
||||
if (projectSecret) { request.setCredentials("", projectSecret); }
|
||||
|
||||
if (projectId === defaultProjectId) {
|
||||
|
Loading…
Reference in New Issue
Block a user