t
tRPC
t
tRPC
tRPC CORS error
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
S
Spoonman
•
11/26/24, 4:39 PM
Install the
cors
cors
express middleware package in your server and add your client to the allowlist
.
app.use(cors({ origin: "http://localhost:3000" }))
app.use(cors({ origin: "http://localhost:3000" }))
https://www.npmjs.com/package/cors
S
Spoonman
Install the `cors` express middleware package in your server and add your client...
S
sbace
•
11/26/24, 5:54 PM
I have it on my server already
, but still not working
cors
cors
app.use(cors({ origin: "http://localhost:3000" }))
app.use(cors({ origin: "http://localhost:3000" }))