When i m trying to access nodejs api using angular its throwing this error
Solution:
1 2 3 4 5 |
npm install cors --save use the below code in the nodejs file var cors = require('cors') app.use(cors()) |
When i m trying to access nodejs api using angular its throwing this error
Solution:
1 2 3 4 5 |
npm install cors --save use the below code in the nodejs file var cors = require('cors') app.use(cors()) |