Add CORS nginx configuration, Access-Control-Allow-Headers, clean target in Makefile.
This commit is contained in:
@ -43,7 +43,8 @@ template jsonResp(code: HttpCode, body: string = "", headersToSend: RawHeaders =
|
||||
@{
|
||||
"Access-Control-Allow-Origin": reqOrigin,
|
||||
"Access-Control-Allow-Credentials": "true",
|
||||
"Access-Control-Allow-Methods": $(request.reqMethod)
|
||||
"Access-Control-Allow-Methods": $(request.reqMethod),
|
||||
"Access-Control-Allow-Headers": "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization"
|
||||
}
|
||||
else: @{:}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
const PM_API_VERSION* = "0.4.0"
|
||||
const PM_API_VERSION* = "0.5.0"
|
||||
|
Reference in New Issue
Block a user