We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strangely, this doesn't work (gives me back a 403):
const auth = { username: "...", password: "..."}; const { results } = await got(CENSYS_IPV4_ENDPOINT, { ...auth }).json();
But using this request does work:
const { results } = await got(CENSYS_IPV4_ENDPOINT, { headers: { Authorization: 'Basic ' + Buffer.from(`${auth.username}:${auth.password}`).toString('base64') } }).json();
Am I perhaps using the basic auth functionality of got incorrectly in the first example?
got
The text was updated successfully, but these errors were encountered:
Duplicate of #1169
Sorry, something went wrong.
No branches or pull requests
Strangely, this doesn't work (gives me back a 403):
But using this request does work:
Am I perhaps using the basic auth functionality of
got
incorrectly in the first example?The text was updated successfully, but these errors were encountered: