tRPCttRPC
Powered by
oscaramaッO
tRPC•3y ago•
28 replies
oscaramaッ

trpc cors

my sveltekit app is running on https://example.com with tRPC and it's making requests to http://127.0.01:3001/api/trpc (otherwise it won't work) but I'm getting a CORS error (' The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:3001/api/trpc/model.getAll?batch=1&input=%7B%7D. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing)'). how can I fix this?
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 CORS error
Answer OverflowAAnswer Overflow / ❓-help
15mo ago
tRPC Cors Authentication Error
RhysRRhys / ❓-help
4y ago
Getting CORS error with tRPC express adapter, locally
rhh4x0RRrhh4x0R / ❓-help
16mo ago
cors
FenixFFenix / ❓-help
3y ago