I am using JavaScript and node js for configuring backend and I want to perform CRUD operations. What should be the right way to solve this problem?
Asked
Active
Viewed 164 times
1
-
Same here; I'm only getting it on localhost requests but it's working when replace localhost with [::1] – Okan Cetin Jul 25 '23 at 08:06
2 Answers
0
Maybe response is missing ,cross check if you are sending res.json or any response after api hit.

Prashant Singh
- 23
- 5
0
I found the solution of this question. In index.js file, I need to use app.use(cors()) instead of app.use(cors) . Because of this, My API is not working. Now, after updating this, Its working.

Mohit Wayde
- 21
- 2