Skip to content

Commit

Permalink
Update Server.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioArroni committed Apr 12, 2022
1 parent edac514 commit 361fd1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions restapi/src/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit 361fd1c

Please sign in to comment.