Skip to content

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

@minuk0612

Description

@minuk0612

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions