CORS errors with wrangler

So I'm doing some local development where I have a Vite dev server and a wrangler ditto for the functions. Unfortunately the wrangler server doesn't return proper cors headers and I don't see any way to configure it. I've seen some dangerous suggestions online where you rewrite the headers in your function, but that would go out in production too and that's definitely not desireable. So, is there a way to send "allow everything" headers with wrangler by default? The reason I don't use the automated "pass through" is because wranger doesn't handle websockets, so HMR breaks.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server