@@ -82,6 +82,11 @@ export interface BrowserPluginOptions<LibraryOptions> {
8282 * Might cause performance issues, as Crawlee might launch too many browser instances.
8383 */
8484 browserPerProxy ?: boolean ;
85+ /**
86+ * If set to `true`, TLS certificate errors from the upstream proxy will be ignored.
87+ * This is useful when using HTTPS proxies with self-signed certificates.
88+ */
89+ ignoreProxyCertificate ?: boolean ;
8590}
8691
8792export interface CreateLaunchContextOptions <
@@ -126,6 +131,8 @@ export abstract class BrowserPlugin<
126131
127132 browserPerProxy ?: boolean ;
128133
134+ ignoreProxyCertificate ?: boolean ;
135+
129136 constructor ( library : Library , options : BrowserPluginOptions < LibraryOptions > = { } ) {
130137 const {
131138 launchOptions = { } as LibraryOptions ,
@@ -134,6 +141,7 @@ export abstract class BrowserPlugin<
134141 useIncognitoPages = false ,
135142 experimentalContainers = false ,
136143 browserPerProxy = false ,
144+ ignoreProxyCertificate = false ,
137145 } = options ;
138146
139147 this . library = library ;
@@ -143,6 +151,7 @@ export abstract class BrowserPlugin<
143151 this . useIncognitoPages = useIncognitoPages ;
144152 this . experimentalContainers = experimentalContainers ;
145153 this . browserPerProxy = browserPerProxy ;
154+ this . ignoreProxyCertificate = ignoreProxyCertificate ;
146155 }
147156
148157 /**
@@ -162,6 +171,7 @@ export abstract class BrowserPlugin<
162171 userDataDir = this . userDataDir ,
163172 experimentalContainers = this . experimentalContainers ,
164173 browserPerProxy = this . browserPerProxy ,
174+ ignoreProxyCertificate = this . ignoreProxyCertificate ,
165175 proxyTier,
166176 } = options ;
167177
@@ -174,6 +184,7 @@ export abstract class BrowserPlugin<
174184 experimentalContainers,
175185 userDataDir,
176186 browserPerProxy,
187+ ignoreProxyCertificate,
177188 proxyTier,
178189 } ) ;
179190 }
0 commit comments