From 361fd1c960d9acd52d074548c9ed287f74990d82 Mon Sep 17 00:00:00 2001 From: Sergio Arroni <60364331+SergioArroni@users.noreply.github.com> Date: Tue, 12 Apr 2022 19:02:17 +0200 Subject: [PATCH] Update Server.ts --- restapi/src/Server.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/restapi/src/Server.ts b/restapi/src/Server.ts index 1b4440da..b9ee8713 100644 --- a/restapi/src/Server.ts +++ b/restapi/src/Server.ts @@ -14,6 +14,7 @@ // =================================> Constants const PORT = Number.parseInt(`${process.env.PORT}`) || 5000; // Port to listen, default 5000 const app: Application = express(); // Express application + app.use(cors()); app.disable("x-powered-by"); const cors_options: cors.CorsOptions = { origin: ['http://localhost:3000']