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