GET Request Nodejs works on localhost but not on my server

The solution, add cors.

var cors = require('cors')

app.use(express.urlencoded({extended:true}));
app.use(cors())

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top