Update logging level for CORS warnings to be less noisy.

This commit is contained in:
Jonathan Bernard 2022-03-11 08:59:48 -06:00
parent 546d1a9cbe
commit f605ce6feb
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
# Package # Package
version = "0.1.0" version = "0.1.1"
author = "Jonathan Bernard" author = "Jonathan Bernard"
description = "JDB Software's opinionated extensions and auth layer for Jester." description = "JDB Software's opinionated extensions and auth layer for Jester."
license = "MIT" license = "MIT"

View File

@ -47,7 +47,7 @@ template sendJsonResp*(
"Access-Control-Allow-Headers": "Authorization,X-CSRF-TOKEN" "Access-Control-Allow-Headers": "Authorization,X-CSRF-TOKEN"
} }
else: else:
log().warn "Unrecognized Origin '" & reqOrigin & "', excluding CORS headers." log().debug "Unrecognized Origin '" & reqOrigin & "', excluding CORS headers."
@{:} @{:}
halt( halt(
@ -85,7 +85,7 @@ template sendOptionsResp*(
"Access-Control-Allow-Headers": "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,X-CSRF-TOKEN" "Access-Control-Allow-Headers": "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,X-CSRF-TOKEN"
} }
else: else:
log().warn "Unrecognized Origin '" & reqOrigin & "', excluding CORS headers." log().debug "Unrecognized Origin '" & reqOrigin & "', excluding CORS headers."
log().debug "Valid origins: " & knownOrigins.join(", ") log().debug "Valid origins: " & knownOrigins.join(", ")
@{:} @{:}