tRPCttRPC
Powered by
FenixF
tRPC•3y ago
Fenix

cors

Hi! Some problems with cors maybe you can help,
readingbee.se/:1 Access to fetch at 'https://server-z4fnqa7szq-oa.a.run.app/api/trpc/mySignIn' from origin 'https://readingbee.se' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
readingbee.se/:1 Access to fetch at 'https://server-z4fnqa7szq-oa.a.run.app/api/trpc/mySignIn' from origin 'https://readingbee.se' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.


https://server-z4fnqa7szq-oa.a.run.app/api/trpc/mySignIn is a trpc callback that seems to work (https://cors-test.codehappy.dev/?url=https%3A%2F%2Fserver-z4fnqa7szq-oa.a.run.app%2Fapi%2Ftrpc%2FmySignIn+&origin=https%3A%2F%2Fcors-test.codehappy.dev%2F&method=get)

But the client gives me Cors errors. (I am using nuxt and as you may gather from the url its on firebase)
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

trpc cors
oscaramaッOoscaramaッ / ❓-help
3y ago
tRPC CORS error
Answer OverflowAAnswer Overflow / ❓-help
15mo ago
tRPC Cors Authentication Error
RhysRRhys / ❓-help
4y ago
CORS in standalone server
HuzefHHuzef / ❓-help
4y ago