Skip to content

Commit

Permalink
fix cors in response
Browse files Browse the repository at this point in the history
  • Loading branch information
opptylabs committed Jun 30, 2023
1 parent a71816e commit 72bbbc7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ export default {
}
});

return await fetch(proxyRequest);
return await fetch(proxyRequest).then(res => {
return new Response(res.body, {
status: res.status,
headers: corsHeaders
});
});
},
};

0 comments on commit 72bbbc7

Please sign in to comment.