chore: bump patch versions; remove temp request logging
Some checks failed
CI / build-and-test (pull_request) Has been cancelled
Some checks failed
CI / build-and-test (pull_request) Has been cancelled
Frontend 0.3.1, backend 1.2.2; drop debug middleware from app.ts. Made-with: Cursor
This commit is contained in:
@@ -7,25 +7,6 @@ import racesRouter from "./routes/races";
|
||||
export function createApp(): express.Express {
|
||||
const app = express();
|
||||
|
||||
// TEMP: compare Host vs Origin for 200 vs 401 debugging — remove when done
|
||||
app.use((req, res, next) => {
|
||||
const host = req.headers.host;
|
||||
const origin = req.headers.origin;
|
||||
res.on("finish", () => {
|
||||
console.log(
|
||||
JSON.stringify({
|
||||
tag: "temp-req-headers",
|
||||
host,
|
||||
origin: origin ?? null,
|
||||
method: req.method,
|
||||
path: req.originalUrl ?? req.url,
|
||||
status: res.statusCode,
|
||||
}),
|
||||
);
|
||||
});
|
||||
next();
|
||||
});
|
||||
|
||||
app.use(
|
||||
cors({ origin: config.corsOrigin, methods: ["GET", "POST", "PATCH", "DELETE", "OPTIONS"] }),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user