Update logging level for CORS warnings to be less noisy.
This commit is contained in:
parent
546d1a9cbe
commit
f605ce6feb
@ -1,6 +1,6 @@
|
||||
# Package
|
||||
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
author = "Jonathan Bernard"
|
||||
description = "JDB Software's opinionated extensions and auth layer for Jester."
|
||||
license = "MIT"
|
||||
|
@ -47,7 +47,7 @@ template sendJsonResp*(
|
||||
"Access-Control-Allow-Headers": "Authorization,X-CSRF-TOKEN"
|
||||
}
|
||||
else:
|
||||
log().warn "Unrecognized Origin '" & reqOrigin & "', excluding CORS headers."
|
||||
log().debug "Unrecognized Origin '" & reqOrigin & "', excluding CORS headers."
|
||||
@{:}
|
||||
|
||||
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"
|
||||
}
|
||||
else:
|
||||
log().warn "Unrecognized Origin '" & reqOrigin & "', excluding CORS headers."
|
||||
log().debug "Unrecognized Origin '" & reqOrigin & "', excluding CORS headers."
|
||||
log().debug "Valid origins: " & knownOrigins.join(", ")
|
||||
@{:}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user