mirror of
				https://github.com/microsoft/playwright.git
				synced 2025-06-26 21:40:17 +00:00 
			
		
		
		
	chore: use header for service2 auth (#26419)
This commit is contained in:
		
							parent
							
								
									00c8dd7ecc
								
							
						
					
					
						commit
						f6563f1a90
					
				@ -70,9 +70,12 @@ if (mode === 'service') {
 | 
				
			|||||||
if (mode === 'service2') {
 | 
					if (mode === 'service2') {
 | 
				
			||||||
  process.env.PW_VERSION_OVERRIDE = '1.37';
 | 
					  process.env.PW_VERSION_OVERRIDE = '1.37';
 | 
				
			||||||
  connectOptions = {
 | 
					  connectOptions = {
 | 
				
			||||||
    wsEndpoint: `${process.env.PLAYWRIGHT_SERVICE_URL}?accessKey=${process.env.PLAYWRIGHT_SERVICE_ACCESS_KEY}&cap=${JSON.stringify({ os, runId })}`,
 | 
					    wsEndpoint: `${process.env.PLAYWRIGHT_SERVICE_URL}?cap=${JSON.stringify({ os, runId })}`,
 | 
				
			||||||
    timeout: 3 * 60 * 1000,
 | 
					    timeout: 3 * 60 * 1000,
 | 
				
			||||||
    exposeNetwork: '<loopback>',
 | 
					    exposeNetwork: '<loopback>',
 | 
				
			||||||
 | 
					    headers: {
 | 
				
			||||||
 | 
					      'x-mpt-access-key': process.env.PLAYWRIGHT_SERVICE_ACCESS_KEY!
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user