mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-09 16:52:13 +01:00
Allow newly used header
This commit is contained in:
parent
5fd6b5eb8b
commit
d28ac39d4f
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue