Skip to content

Commit

Permalink
Merge pull request #122 from ReflectionsProjections/dev/aydan/disable…
Browse files Browse the repository at this point in the history
…-cors

Disabled CORS for registration :D
  • Loading branch information
AydanPirani authored Aug 17, 2024
2 parents efd91af + 3a19cff commit 99573d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/registration/registration-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ import RoleChecker from "../../middleware/role-checker";
import { Role } from "../auth/auth-models";
import { AttendeeCreateValidator } from "../attendee/attendee-validators";
import { registrationExists } from "./registration-utils";
import cors from "cors";

const registrationRouter = Router();
registrationRouter.use(cors());

// A database upsert operation to save registration mid-progress
registrationRouter.post("/save", RoleChecker([]), async (req, res, next) => {
Expand Down

0 comments on commit 99573d4

Please sign in to comment.