Defect HC-23453

Query app Authorization from the "Authorization" header failed

Software

Customer case Applies to Corrected in
CS0349714, CS0346164 V9.1.11.0 9.1.12.0

Observed behavior

From time to time, an "Authorization from the "Authorization" header failed" message occurs with a log entry similar to the following:

[10/20/22 12:48:19:730 GMT] 0000002d id= O 2022-10-20T12:48:19.730Z [Default Executor-thread-6] [7156575585768383935] TRACE c.h.c.s.i.f.SearchCommerceTokenHelper.validateContractId:350 - 401 Unauthorized: "{"errors":[ {"errorKey":"ERR_AUTHENTICATION_COOKIE_NOT_IN_HTTPS","errorParameters":"","errorMessage":"CWXFR0221E: A security error has occurred because the WC_AUTHENTICATION cookie was not passed with the WC_USER_ACTIVITY cookie when using HTTPS.","errorCode":"CWXFR0221E"} ]}"

Expected behavior

There should be no exception in the log and no errors.

Resolution

Code Fix