JSFiddle - React, Tailwind, and code Playground
JavaScript
const test = async () => {
const url = 'https://jb-streamer-assets-test.s3.amazonaws.com/streamer_test_sample/cover.xhtml'
const headers = new Headers();
headers.append('Access-Control-Allow-Origin', '*');
headers.append('Content-Type', 'application/xhtml+xml');
const response = await fetch(url, {
mode: 'no-cors',
method: "GET",
headers,
});
// const text = await response.text();
console.log({response})
}
test()