fix: CORS headers for firefox

This commit is contained in:
Kentai Radiquum 2025-08-22 00:41:17 +05:00
parent c8a7a38b52
commit ee68300501
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
4 changed files with 4 additions and 4 deletions

View file

@ -9,7 +9,7 @@ app.use(function (req, res, next) {
res.header("Access-Control-Allow-Origin", req.headers.origin || "*");
res.header(
"Access-Control-Allow-Headers",
"Origin, X-Requested-With, Content-Type, Accept"
"Origin, X-Requested-With, Content-Type, Accept, Allow, User-Agent"
);
res.header("Access-Control-Allow-Methods", "GET,HEAD,POST,OPTIONS");
next();