Skip to content

Commit

Permalink
updated header options
Browse files Browse the repository at this point in the history
  • Loading branch information
jazicorn committed Oct 5, 2023
1 parent 0d85ecd commit 89777df
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions apps/api/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@ import cors from 'cors';
import * as dotenv from 'dotenv';
dotenv.config();


const corsOpt = process.env.CORS_URLS || '';

class App {
public app: Application;
public port: number;
private corsOptions;

constructor(authControllers, controllers) {
this.corsOptions = corsOpt.split(',');
this.corsOptions = process.env.CORS_URLS || '';
this.app = express();
this.port = parseInt(process.env.PORT as string) || 8000;
this.initMiddlewares();
Expand Down

0 comments on commit 89777df

Please sign in to comment.