Add DELETE to cors

This commit is contained in:
artur 2024-02-16 15:36:38 +03:00
parent b42621cb23
commit 3011f3eae5

View File

@ -577,7 +577,7 @@ app.use(
app.use(function (req, res, next) {
res
.header("Access-Control-Allow-Origin", "*")
.header("Access-Control-Allow-Methods", "GET, POST, PUT, OPTIONS")
.header("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS")
.header(
"Access-Control-Allow-Headers",
"accept,content-type,x-requested-with,authorization"