Describe the bug
I am a novice programmer, so maybe there is a problem with my understanding. I am sorry if this is the case.
I am trying to use Buffer to get browserless to encode string in base64 for authentication purposes like this:
const encoded = Buffer.from('username:password', 'utf8').toString('base64')
There are no warnings, and nothing is output in debugging window. If I comment this line, it works.
To Reproduce
Steps to reproduce the behavior:
Desktop (please complete the following information):
Additional context
Node version: v16.18.1
Npm version: 9.2.0
Sorry, are you trying to authenticate a proxy? I assume that you want to add the encoded string to the HTTP headers. You can use Page.setExtraHTTPHeaders() for that
await page.setExtraHTTPHeaders({
Authorization: `Basic ${encoded}`,
});
Though it can vary depending on what you're authenticating
Owner Name | browserless |
Repo Name | chrome |
Full Name | browserless/chrome |
Language | TypeScript |
Created Date | 2017-11-17 |
Updated Date | 2023-03-22 |
Star Count | 5309 |
Watcher Count | 47 |
Fork Count | 516 |
Issue Count | 29 |
Issue Title | Created Date | Updated Date |
---|