File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -144,12 +144,12 @@ const anotherBrowser = await launch({ wsEndpoint: browser.wsEndpoint() });
144
144
145
145
``` ts
146
146
// Open a new page
147
- const page = await browser .newPage (
148
- " https://httpbin.org/basic-auth/user/passwd" ,
149
- );
147
+ const page = await browser .newPage ();
150
148
151
149
// Provide credentials for HTTP authentication.
152
- await page .authenticate ({ username: " user" , password: " passwd" });
150
+ const url = " https://postman-echo.com/basic-auth" ;
151
+ await page .authenticate ({ username: " postman" , password: " password" });
152
+ await page .goto (url , { waitUntil: " networkidle2" });
153
153
```
154
154
155
155
## BYOB - Bring Your Own Browser
@@ -205,8 +205,8 @@ await browser.close();
205
205
> workarounds, see
206
206
> https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md
207
207
208
- The following shell can remove AppArmor restrictions on user namespaces so that
209
- Puppeteer can launch Chrome without the "No usable sandbox!" error (Refer
208
+ The following command removes AppArmor restrictions on user namespaces, allowing
209
+ Puppeteer to launch Chrome without the "No usable sandbox!" error (see
210
210
[ puppeteer #13196 ] ( https://github.com/puppeteer/puppeteer/pull/13196 ) ):
211
211
212
212
echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
You can’t perform that action at this time.
0 commit comments