axios-fetch-adapter icon indicating copy to clipboard operation
axios-fetch-adapter copied to clipboard

Error on CloudFlare Workers

Open BlakeB415 opened this issue 2 years ago • 0 comments

Error: The 'credentials' field on 'RequestInitializerDict' is not implemented.
    at createRequest (VM4 worker.js:28479)
    at fetchAdapter (VM4 worker.js:28354)
    at dispatchRequest (VM4 worker.js:27722)
    at async setup (VM4 worker.js:71161)

options.credentials = config.withCredentials ? 'include' : 'omit'; This has to be undefined in a CF worker as they don't implement options.credentials for some reason.

BlakeB415 avatar Oct 04 '22 04:10 BlakeB415