I'm struglling since yesterday wiht CORS errors , ...
# support-questions-legacy
a
I'm struglling since yesterday wiht CORS errors , I tried all posssible solutions but still getting errors , I used the following cors setting in the backend app.use(cors({ origin: "http://localhost:5173", allowedHeaders: ["content-type", ...supertokens.getAllCORSHeaders()], methods: ["GET", "PUT", "POST", "DELETE"], }));