From d2fcc6b62f06823647023b907e893631f7272e32 Mon Sep 17 00:00:00 2001 From: simeng-li Date: Fri, 28 Apr 2023 17:22:40 +0800 Subject: [PATCH] fix(cloud): fix cloud admin ac iframe src error (#3786) should allow admin endpoint to be loaded in admin ac iframe --- packages/cloud/src/middleware/with-security-headers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cloud/src/middleware/with-security-headers.ts b/packages/cloud/src/middleware/with-security-headers.ts index 647638a54..901fb4dd2 100644 --- a/packages/cloud/src/middleware/with-security-headers.ts +++ b/packages/cloud/src/middleware/with-security-headers.ts @@ -100,7 +100,7 @@ export default function withSecurityHeaders ...developmentOrigins, ...appInsightsOrigins, ], - frameSrc: ["'self'", ...urlSetOrigins], + frameSrc: ["'self'", ...urlSetOrigins, ...adminOrigins], }, }, },