tRPCttRPC
Powered by
HuzefH
tRPC•4y ago•
4 replies
Huzef

CORS in standalone server

Hi,

I'm trying to get CORS working in standalone server.
Attempted this solution but unfortunately it no longer works with v10
https://github.com/trpc/trpc/issues/623

And with my own code for v10 it throws a "405 METHOD_NOT_SUPPORTED" when the method is set to OPTIONS
Screen_Shot_2022-10-14_at_11.17.28_PM.png
GitHub
@trpc/server - Handling CORS and CORS preflight requests · Issue #6...
When using the standalone server, it might be useful to handle CORS preflight requests. Currently the request just falls with a 405, Method Not Allowed. I'm proposing the addition of a cors...
@trpc/server - Handling CORS and CORS preflight requests · Issue #6...
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

tRPC standalone server in monorepo
HuzefHHuzef / ❓-help
3y ago
Deduplicating identical queries in tRPC httpBatchLink (standalone server + Next.js server-side)
webdevisfunWwebdevisfun / ❓-help
6mo ago
How to close a Standalone adapter server?
AerysAAerys / ❓-help
3y ago