You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SDK currently uses axios with its default adapter to make requests. However in serverless environments (Cloudflare Pages in my scenario), axios with XMLHTTPRequest is not always an option, see this. Instead the Fetch API should be used.
Solution
Axios allows the introduction of adapters as part of its request config. This option simply needs to be exposed. Exisiting adapters such as @vespaiach/axios-fetch-adapter can be used directly.
The text was updated successfully, but these errors were encountered:
Feature Request
Allow adapters for axios requests
The Problem:
The SDK currently uses axios with its default adapter to make requests. However in serverless environments (Cloudflare Pages in my scenario), axios with XMLHTTPRequest is not always an option, see this. Instead the Fetch API should be used.
Solution
Axios allows the introduction of adapters as part of its request config. This option simply needs to be exposed. Exisiting adapters such as @vespaiach/axios-fetch-adapter can be used directly.
The text was updated successfully, but these errors were encountered: