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']