From 5125da67f29ad0f52b9e52f90c7b93f6dfeccd9c Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Thu, 25 May 2023 22:21:08 +0800 Subject: [PATCH] refactor: fix gtag reporting --- .../cloud/src/middleware/with-security-headers.ts | 8 ++++++-- packages/console/src/onboarding/App.tsx | 8 ++++---- packages/console/src/onboarding/utils.ts | 15 +++++++++++---- 3 files changed, 21 insertions(+), 10 deletions(-) diff --git a/packages/cloud/src/middleware/with-security-headers.ts b/packages/cloud/src/middleware/with-security-headers.ts index 9a8b82a02..797801361 100644 --- a/packages/cloud/src/middleware/with-security-headers.ts +++ b/packages/cloud/src/middleware/with-security-headers.ts @@ -38,7 +38,11 @@ export default function withSecurityHeaders const developmentOrigins = conditionalArray(!isProduction && 'ws:'); const appInsightsOrigins = ['https://*.applicationinsights.azure.com']; // Gtag will load by `