api: Log CORS headers.
This commit is contained in:
parent
77a89e98aa
commit
f848514df1
@ -39,6 +39,8 @@ template jsonResp(code: HttpCode,
|
|||||||
}
|
}
|
||||||
else: @{:}
|
else: @{:}
|
||||||
|
|
||||||
|
debug "Request origin: $#\nKnown origins: $#\nAdding headers:\n$#" %
|
||||||
|
[ reqOrigin, cfg.knownOrigins.join(" | "), $corsHeaders ]
|
||||||
halt(
|
halt(
|
||||||
code,
|
code,
|
||||||
headersToSend & corsHeaders & @{
|
headersToSend & corsHeaders & @{
|
||||||
|
Loading…
Reference in New Issue
Block a user