This commit is contained in:
Dobromir Popov
2023-08-23 21:23:14 +00:00
parent 7a392da9b3
commit 61e6d3ced3

View File

@@ -15,7 +15,7 @@ const app = express();
var httpServer = http.createServer(app);
// adding Helmet to enhance your API's security
app.use(helmet());
// using bodyParser to parse JSON bodies into JS objects
// using bodyParser to parse JSON bodies into JS objects
app.use(bodyParser.json());
// enabling CORS for all requests
app.use(cors());