Add DELETE to cors
This commit is contained in:
parent
b42621cb23
commit
3011f3eae5
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user