ImageKit Upload Error – ReferenceError: XMLHttpRequest is not defined
When trying to use the ImageKit API on my server side, I keep getting the following error: XMLHttpRequest is not defined
. I have installed xmlhttprequest
with npm and tried require('xmlhttprequest')
and require('xmlhttprequest').XMLHttpRequest
, but neither has worked. What can I do here?