-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
XMLHttpRequest is not defined in Netlify Functions #370
Labels
bug
Something isn't working
Comments
I have the same issue with ElectronJS. On the main (nodejs) thread. Any idea? |
You can maybe alias the For my project, I changed the way I was using the content API to only run on the browser. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Summary
XMLHttpRequest is not defined in Netlify Functions
To Reproduce
I think
@tryghost/content-api
uses axios to send AJAX requests. Axios depends heavily on XMLHttpRequest for its functioning.Possible alternatives can be https://github.com/developit/redaxios
Technical details:
The text was updated successfully, but these errors were encountered: