api: Log CORS headers.

This commit is contained in:
Jonathan Bernard 2024-08-12 16:35:34 -05:00
parent 77a89e98aa
commit f848514df1

View File

@ -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 & @{