From ace1676cd4339663821d8be098e4f09cdfc0377a Mon Sep 17 00:00:00 2001 From: Xu Yang Date: Wed, 4 Dec 2024 08:55:44 -0800 Subject: [PATCH] update --- src/main/java/com/uid2/operator/service/ResponseUtil.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/uid2/operator/service/ResponseUtil.java b/src/main/java/com/uid2/operator/service/ResponseUtil.java index b6934b7dc..0c076b2f7 100644 --- a/src/main/java/com/uid2/operator/service/ResponseUtil.java +++ b/src/main/java/com/uid2/operator/service/ResponseUtil.java @@ -70,7 +70,9 @@ public static void LogInfoAndSend400Response(RoutingContext rc, String message) public static void SendClientErrorResponseAndRecordStats(String errorStatus, int statusCode, RoutingContext rc, String message, Integer siteId, TokenResponseStatsCollector.Endpoint endpoint, TokenResponseStatsCollector.ResponseStatus responseStatus, ISiteStore siteProvider, TokenResponseStatsCollector.PlatformType platformType) { // 400 error - if (ResponseStatus.ClientError.equals(errorStatus)) + if (ResponseStatus.ClientError.equals(errorStatus) || + ResponseStatus.InvalidAppName.equals(errorStatus) || + ResponseStatus.InvalidHttpOrigin.equals(errorStatus)) { LogInfoAndSendResponse(errorStatus, statusCode, rc, message); }