// Install cors package: npm install cors const express = require("express"); const app = express(); const cors = require('cors'); app.use(cors()); // your http request should work after this