Access to XMLHttpRequest at 'https://socialife-api.netlify.app/auth/login' from origin 'https://socialife.netlify.app' has been blocked by CORS policy: Response to preflight request doesn't pass access control check

Both backend and api and frontend are deployed on netlify.
Backend website : https://socialife-api.netlify.app/
Frontend website : https://socialife.netlify.app/

backend code : GitHub - shetty-nithin/socialife_backend: social network website
frontend code : GitHub - shetty-nithin/socialife_frontend: social networking website

When im trying to login, im getting this CORS issue,
image

Please help me.

this is my api folder structure :
image

this is my frontend folder structure :
image

Simply create a rewrite proxy to bypass CORS: Rewrites and proxies | Netlify Docs

Exmple: netlify-file-browser/netlify.toml at v2 · Hrishikesh-K/netlify-file-browser · GitHub