mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-12 20:14:15 +00:00
update default headers
This commit is contained in:
parent
5e13cd712b
commit
1640e2bb2f
@ -13,7 +13,7 @@ import express from "express"
|
|||||||
import pkg from "../package.json"
|
import pkg from "../package.json"
|
||||||
|
|
||||||
global.DEFAULT_HEADERS = {
|
global.DEFAULT_HEADERS = {
|
||||||
"Access-Control-Allow-Headers": "Origin, X-Requested-With, Content-Type, Accept, Authorization",
|
"Access-Control-Allow-Headers": "Origin, X-Requested-With, Content-Type, Accept, Authorization, provider-type, Provider-Type",
|
||||||
"Access-Control-Allow-Origin": "*",
|
"Access-Control-Allow-Origin": "*",
|
||||||
"Access-Control-Allow-Methods": "GET, POST, OPTIONS, PUT, PATCH, DELETE, DEL",
|
"Access-Control-Allow-Methods": "GET, POST, OPTIONS, PUT, PATCH, DELETE, DEL",
|
||||||
"Access-Control-Allow-Credentials": "true",
|
"Access-Control-Allow-Credentials": "true",
|
||||||
@ -23,8 +23,8 @@ global.DEFAULT_MIDDLEWARES = [
|
|||||||
cors({
|
cors({
|
||||||
"origin": "*",
|
"origin": "*",
|
||||||
"methods": DEFAULT_HEADERS["Access-Control-Allow-Methods"],
|
"methods": DEFAULT_HEADERS["Access-Control-Allow-Methods"],
|
||||||
"preflightContinue": false,
|
"preflightContinue": true,
|
||||||
"optionsSuccessStatus": 204
|
"optionsSuccessStatus": 204,
|
||||||
}),
|
}),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user