Add CORS nginx configuration, Access-Control-Allow-Headers, clean target in Makefile.

This commit is contained in:
2019-09-27 00:33:06 -05:00
parent bfcce67788
commit d205bd3a37
7 changed files with 150 additions and 88 deletions

View File

@ -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: @{:}

View File

@ -1 +1 @@
const PM_API_VERSION* = "0.4.0"
const PM_API_VERSION* = "0.5.0"