tRPC CORS error
Hello, I have tRPC setup with express.js and next.js (as the client) within a turborepo and tRPC as a shared package. What am I doing wrong to get a cors error. Any help would be appreciated.
2 Replies
Install the
cors
express middleware package in your server and add your client to the allowlist.
https://www.npmjs.com/package/corsI have it on my server already, but still not working