Skip to content

Commit

Permalink
Update CORS options to allow frontend staging by Firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
ji-mmyliu committed Nov 7, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent a30d5ef commit 72ffb5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/server.ts
Original file line number Diff line number Diff line change
@@ -22,9 +22,9 @@ import courseRouter from "./rest/courseRoutes";

const CORS_ALLOW_LIST = [
"http://localhost:3000",
"https://uw-blueprint-starter-code.firebaseapp.com",
"https://uw-blueprint-starter-code.web.app",
/^https:\/\/uw-blueprint-starter-code--pr.*\.web\.app$/,
"https://extendafamily-7613e.firebaseapp.com",
"https://extendafamily-7613e.web.app",
/^https:\/\/extendafamily-7613e--pr.*\.web\.app$/,
];

const CORS_OPTIONS: cors.CorsOptions = {

0 comments on commit 72ffb5c

Please sign in to comment.