Skip to content

Commit

Permalink
fix(auth): cors config
Browse files Browse the repository at this point in the history
  • Loading branch information
HagerDakroury committed Jul 14, 2021
1 parent 0065f0a commit c3179bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ app.use(express.json());
app.use(express.urlencoded({ extended: true }));
app.use(cookieParser());

app.use(cors());

app.use(signupRouter);
app.use(loginRouter);

app.use(cors());
app.options("*", cors());

app.use(verifyRouter);

const port = 4002;
Expand Down

0 comments on commit c3179bc

Please sign in to comment.