Skip to content

Commit

Permalink
Cors: expose shiggy id and location headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ImLvna committed Oct 2, 2023
1 parent aa2745b commit 0ecc648
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ import express from "express";
import cors from "cors";

const app = express();
app.use(cors());
app.use(
cors({
exposedHeaders: ["Shiggy-Id", "Location"],
}),
);

app.use(express.static("dist/client"));

Expand Down

0 comments on commit 0ecc648

Please sign in to comment.