From f848514df191cb2efbf9e5f37c35a4e3ecbb9318 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Mon, 12 Aug 2024 16:35:34 -0500 Subject: [PATCH] api: Log CORS headers. --- api/src/hff_entry_forms_apipkg/api.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/hff_entry_forms_apipkg/api.nim b/api/src/hff_entry_forms_apipkg/api.nim index bca5919..5008bec 100644 --- a/api/src/hff_entry_forms_apipkg/api.nim +++ b/api/src/hff_entry_forms_apipkg/api.nim @@ -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 & @{