We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fd6b5e commit d28ac39Copy full SHA for d28ac39
src/middleware/cors.ts
@@ -3,6 +3,6 @@ import { NextFunction, Request, Response } from "express";
3
export function corsMiddleware(req: Request, res: Response, next: NextFunction): void {
4
res.header("Access-Control-Allow-Origin", "*");
5
res.header("Access-Control-Allow-Methods", "GET, POST, OPTIONS, DELETE");
6
- 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");
7
next();
8
}
0 commit comments