Skip to content

Commit 4567ebc

Browse files
authored
Merge pull request #2105 from Ishavyas9/main
HYP bypass proxy domain doc
2 parents 35563ee + 1732ecc commit 4567ebc

File tree

3 files changed

+68
-1
lines changed

3 files changed

+68
-1
lines changed

docs/bypass-proxy-domains.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
id: bypass-proxy-domains
3+
title: How to Bypass Proxy Domains
4+
hide_title: false
5+
sidebar_label: Bypass Proxy Domains
6+
description: Learn how to use LambdaTest bypassProxyDomains capability to specify domains that should bypass the dedicated proxy.
7+
keywords:
8+
- custom headers lambdatest
9+
- bypass firewalls restrictions
10+
- custom headers bypass firewalls
11+
url: https://www.lambdatest.com/support/docs/bypass-proxy-domains/
12+
site_name: LambdaTest
13+
slug: bypass-proxy-domains/
14+
---
15+
16+
<script type="application/ld+json"
17+
dangerouslySetInnerHTML={{ __html: JSON.stringify({
18+
"@context": "https://schema.org",
19+
"@type": "BreadcrumbList",
20+
"itemListElement": [
21+
{
22+
"@type": "ListItem",
23+
"position": 1,
24+
"name": "Home",
25+
"item": "https://www.lambdatest.com"
26+
},
27+
{
28+
"@type": "ListItem",
29+
"position": 2,
30+
"name": "Support",
31+
"item": "https://www.lambdatest.com/support/docs/"
32+
},
33+
{
34+
"@type": "ListItem",
35+
"position": 3,
36+
"name": "Bypass Proxy Domains",
37+
"item": "https://www.lambdatest.com/support/docs/bypass-proxy-domains/"
38+
}
39+
]})
40+
}}>
41+
</script>
42+
43+
When running tests with Dedicated Proxy (DP) enabled, all outgoing requests are routed through the proxy. While this provides secure and controlled network access, it can sometimes cause issues when your tests need to access services running locally, such as localhost endpoints or specific internal domains.
44+
45+
To solve this, you can use the `bypassProxyDomains` capability. This capability lets you define a list of domains that should bypass the dedicated proxy and instead be resolved directly from the test environment.
46+
47+
With `bypassProxyDomains`, you can configure specific domains (like localhost) to skip the proxy hop and resolve locally. This ensures that local APIs, servers, or background services started during tests remain accessible.
48+
49+
## Capability Reference
50+
51+
| Capability | Type | Required | Description |
52+
| -------------------- | --------- | -------- | ------------------------------------------------------------------------------ |
53+
| `dedicatedProxy` | `boolean` | Yes | Must be set to `true` for `bypassProxyDomains` to take effect. |
54+
| `bypassProxyDomains` | `array` | Optional | List of domains (hostnames) to bypass the dedicated proxy and resolve locally. |
55+
56+
> `dedicatedProxy: true` is mandatory for bypassProxyDomains to take effect.
57+
58+
## Example Usage
59+
60+
```java title="test1.java"
61+
DesiredCapabilities capabilities = new DesiredCapabilities();
62+
String bypassProxyDomains[] = { "127.0.0.1", "localhost", "todomvc" };
63+
64+
capabilities.setCapability("dedicatedProxy", true);
65+
capabilities.setCapability("bypassProxyDomains", bypassProxyDomains);
66+
```

docs/playwright-accessibility-test.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import TabItem from '@theme/TabItem';
4444
></script>
4545
This document walks you through the process of evaluating the accessibility of your website through the execution of automated tests using LambdaTest's Accessibility Tool.
4646

47-
<!-- > Compatible only with Chrome and Edge browser versions >= 90. -->
47+
> **Note :** Accessibility Testing for Playwright is currently only supported on the Chrome browser (not Chromium-based browsers).
4848
4949
## Prerequisites
5050

sidebars.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3746,6 +3746,7 @@ module.exports = {
37463746
"load-balancing-in-lambda-tunnel",
37473747
"charles-proxy",
37483748
"dedicated-proxy",
3749+
"bypass-proxy-domains",
37493750
"socks5-proxy-support",
37503751
"http2-support", // Added HTTP/2 support doc
37513752
],

0 commit comments

Comments
 (0)