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

Browser usage #11

Open
rakuzen25 opened this issue Jan 4, 2023 · 1 comment
Open

Browser usage #11

rakuzen25 opened this issue Jan 4, 2023 · 1 comment

Comments

@rakuzen25
Copy link

I see that this library uses node-fetch (by the way, Node finally added native Fetch in v17.5), but I'm thinking whether it's possible to use it in the browser as well.

One of the biggest problems to overcome in a browser context is CORS restrictions, which I think requires the user to provide a proxy themselves (like All Origins) that needs to be prepended before the URLs. Other than that, I don't really know if there are other things that could be affected, especially the request headers. I'm wondering if the author would be interested to support browser usage? @vladdenisov

@vladdenisov
Copy link
Owner

I think it's very great suggestion! However, I don't really have spare time now (finals at uni)...

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