Skip to content

Commit

Permalink
cors
Browse files Browse the repository at this point in the history
  • Loading branch information
Aydan Pirani committed Aug 17, 2024
1 parent 3a19cff commit 2e51f0a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { isTest } from "./utilities";
import AWS from "aws-sdk";

import databaseMiddleware from "./middleware/database-middleware";
import customCors from "./middleware/cors-middleware";
// import customCors from "./middleware/cors-middleware";
import morgan from "morgan";
import bodyParser from "body-parser";
import errorHandler from "./middleware/error-handler";
Expand All @@ -23,6 +23,8 @@ import subscriptionRouter from "./services/subscription/subscription-router";
import speakersRouter from "./services/speakers/speakers-router";
import puzzlebangRouter from "./services/puzzlebang/puzzlebang-router";

import cors from "cors";

AWS.config.update({
region: Config.S3_REGION,
accessKeyId: Config.S3_ACCESS_KEY,
Expand All @@ -37,7 +39,8 @@ app.disable("etag");

app.use(rateLimiter);

app.use(customCors);
// app.use(customCors);
app.use(cors());

// To display the logs every time
app.use("/", morgan("dev"));
Expand Down

0 comments on commit 2e51f0a

Please sign in to comment.