Hey developer i stuck in CORS error please help me to solve this
i am providing you a chatGpt conversation where error and code is written in proper color theme and indentation so
read from where chatGpt firstly respond
-> first block is what error i face (by chatgpt )
-> First code snippet is about how i handle CORS in server/index.js file
-> The second snippet is about the login controller code logic (you can consider res.json code at the end)
LoginPage.jsx code(optional)
App.jsx(optional)
https://chatgpt.com/share/672e074b-0530-800e-a5fa-d13113d036be
Hey developer i stuck in CORS error please help me to solve this
i am providing you a chatGpt conversation where error and code is written in proper color theme and indentation so
read from where chatGpt firstly respond
-> first block is what error i face (by chatgpt )
-> First code snippet is about how i handle CORS in server/index.js file
-> The second snippet is about the login controller code logic (you can consider res.json code at the end)
LoginPage.jsx code(optional)
App.jsx(optional)
https://chatgpt.com/share/672e074b-0530-800e-a5fa-d13113d036be