mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2026-03-14 06:22:48 +03:00
Allow newly used header
This commit is contained in:
@@ -3,6 +3,6 @@ import { NextFunction, Request, Response } from "express";
|
|||||||
export function corsMiddleware(req: Request, res: Response, next: NextFunction): void {
|
export function corsMiddleware(req: Request, res: Response, next: NextFunction): void {
|
||||||
res.header("Access-Control-Allow-Origin", "*");
|
res.header("Access-Control-Allow-Origin", "*");
|
||||||
res.header("Access-Control-Allow-Methods", "GET, POST, OPTIONS, DELETE");
|
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();
|
next();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user