I was getting an error Cross-region Request Blocked. So i added cors to my index.js file
app.use(
cors({
origin: '*',
credentials: true,
})
)
Before adding this to my file, i was not able to login because of error but now i can login (after adding the above code). The error is gone on login and signup only but not on other API requests like /api/details etc It’s showing the same error of cross region here
I have tried adding the above code on other pages but it’s not working