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
{{ message }}
This repository has been archived by the owner on Aug 26, 2020. It is now read-only.
any idea how to enable "Access-Control-Allow-Origin": '*', for ?proxied content ?! i've add "Access-Control-Allow-Origin": '*', almost everywhere but still when i try to access content from url?proxied it still cannot access it from another website
async function proxiedDownload(downloadUrl) {
console.info(`ProxyDownload -> ${downloadUrl}`);
const remoteResp = await fetch(downloadUrl);
let option = {
status: 200,
headers: {
"Access-Control-Allow-Origin": '*',
}
};
let {
readable,
writable
} = new TransformStream();
remoteResp.body.pipeTo(writable);
return new Response(readable, remoteResp, option);
}
is not working... help?
Thanks
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
any idea how to enable
"Access-Control-Allow-Origin": '*',
for ?proxied content ?! i've add"Access-Control-Allow-Origin": '*',
almost everywhere but still when i try to access content from url?proxied it still cannot access it from another websiteis not working... help?
Thanks
The text was updated successfully, but these errors were encountered: