cross-fetch
cross-fetch copied to clipboard
Cross fetch throw an error [ReferenceError: XMLHttpRequest is not defined]
This is specific case with nextJs middleware. The package is working fine everywhere but when we try to use it in NEXTJS middleware its throw error. The middleware is using edge runtime. https://nextjs.org/docs/api-reference/edge-runtime