Update logging level for CORS warnings to be less noisy.
This commit is contained in:
@ -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(", ")
|
||||
@{:}
|
||||
|
||||
|
Reference in New Issue
Block a user