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

[Question] Cloudflare Workers Support #82

Closed
giacomolm opened this issue Dec 28, 2020 · 2 comments
Closed

[Question] Cloudflare Workers Support #82

giacomolm opened this issue Dec 28, 2020 · 2 comments

Comments

@giacomolm
Copy link

Hi,
I am testing - indirectly - the cross-fetch library on CloudFlare Workers and I get the following error:

'XMLHttpRequest is not defined'

Are you planning to support CF workers in the near future ?

Please note that node-fetch seems to work with CF, but I couldn't find any "official" statement .

TIA

@lquixada
Copy link
Owner

Not familiar with CloudFlare Workers but the purpose of cross-fetch is just to act as a proxy for both node-fetch and whatwg-fetch. If the environment lacks the XMLHttpRequest object, maybe a polyfill for that could help you out.

@lquixada
Copy link
Owner

I'm closing this as it seems a duplicate of #69 .

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