Skip to content
New issue

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

ignore proxy signed certificate(ssl) issue in request-promise #365

Open
minuk0612 opened this issue Apr 18, 2021 · 1 comment
Open

ignore proxy signed certificate(ssl) issue in request-promise #365

minuk0612 opened this issue Apr 18, 2021 · 1 comment

Comments

@minuk0612
Copy link

minuk0612 commented Apr 18, 2021

It is showing error in return statement idk where i m going wrong how should i make it work please guide

`
function fetchAPI(url, email, apiKey, zoneTag) {
let request = new Request(url, verify=False)
let query = {"query":"{\n viewer {\n zones(filter: { zoneTag: "> ...}
let init = {
method: 'POST',
body: JSON.stringify(query),
insecure: true
}
request.headers.set('x-auth-key', apiKey)
request.headers.set('x-auth-email', email)
return fetch(request, init)
}

`(index):128 POST https://api.cloudflare.com/client/v4/graphql net::ERR_CERT_INVALID
i have tried this too its giving me error like this in my javascript code.

@shirshak55
Copy link

rejectUnauthorized: false too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants