Skip to content

net/http package (net/http: neither of Fetch nor XMLHttpRequest APIs is available) #839

Closed
@pjebs

Description

@pjebs

I am making an electron app. http.Client works for render process (inside chromium JavaScript) but doesn't work from main process (node js)

It says an error about it not being supported.

How can I make requests from the main process? The compatibility table says I need a polyfill? Why does node js need a polyfill when it works from within chromium. What's the difference?

Is it better to use node library directly or perhaps axios library?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions