I'm trying to make a simple ionic (with angular) application that can connect to Nodejs backend but when I want to get the data from MongoDB I got this error I don't know how to solve it please help me I'm stack on this problem
Asked
Active
Viewed 30 times
1
-
are you added cors in your express app..!!! like .. var cors = require('cors') app.use(cors('*')) – Jagadeesh Katla Mar 23 '21 at 18:09
-
no I don't add the cores in express app – youssef115 Mar 23 '21 at 18:12
-
after I add the cors in the express now the problem is solved thank you that mean a lot to me :D – youssef115 Mar 23 '21 at 18:15