v.22.10Bug Fix

Fix missing CORS headers in HTTP responses

Fix a bug that CORS headers are missing in some HTTP responses. #41792 (Frank Chen).