netlify.toml File
[[redirects]]
from = "/api/*"
to = "https://foodapp-backend-z289.onrender.com/:splat"
status = 200
force = true
Backend Code
import cors from "cors"
app.use(cors({ origin: "https://omnifood-nikhilverma.netlify.app" }));
I just need to make a request from my frontend to deployed backend