diff --git a/src/middleware/cors.ts b/src/middleware/cors.ts index 6e5f2c2..c7a328e 100644 --- a/src/middleware/cors.ts +++ b/src/middleware/cors.ts @@ -3,6 +3,6 @@ import { NextFunction, Request, Response } from "express"; export function corsMiddleware(req: Request, res: Response, next: NextFunction): void { res.header("Access-Control-Allow-Origin", "*"); res.header("Access-Control-Allow-Methods", "GET, POST, OPTIONS, DELETE"); - res.header("Access-Control-Allow-Headers", "Content-Type, If-None-Match"); + res.header("Access-Control-Allow-Headers", "Content-Type, If-None-Match, x-client-name"); next(); }