This is imported from https://github.com/ahuigo/deno-fetchx/tree/main/test
npm install deno-fetchx
import fetchx from deno-fetchx
const res = await fetchx.
setCredentials('omit').
setMode('cors').
post("https://httpbin.org/post", {
params: {
"name": "Alex",
},
// credentials: 'omit', // is ok
mode: "cors",
}).then((res: Response) => res.json());
https://github.com/ahuigo/js-fetchx/blob/main/src/demo/fetch-cors.test.ts