From 163ee43410d4e524977d8cd6db92071b8ccb6e8e Mon Sep 17 00:00:00 2001 From: Max Alekseenko Date: Thu, 16 May 2024 15:45:01 +0200 Subject: [PATCH 1/2] add frame-ancestors rule to csp --- nextjs/csp/policies/app.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nextjs/csp/policies/app.ts b/nextjs/csp/policies/app.ts index 3f7be57274..5734f85a76 100644 --- a/nextjs/csp/policies/app.ts +++ b/nextjs/csp/policies/app.ts @@ -133,6 +133,10 @@ export function app(): CspDev.DirectiveDescriptor { '*', ], + 'frame-ancestors': [ + KEY_WORDS.SELF, + ], + ...((() => { if (!config.features.sentry.isEnabled) { return {}; From 0eca4f3aabde142f874815a3e26d38edda4ba186 Mon Sep 17 00:00:00 2001 From: Max Alekseenko Date: Thu, 16 May 2024 15:50:28 +0200 Subject: [PATCH 2/2] fix image size --- ui/marketplace/MarketplaceListWithScores/AppLink.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/marketplace/MarketplaceListWithScores/AppLink.tsx b/ui/marketplace/MarketplaceListWithScores/AppLink.tsx index bf1b1d6af7..a40ece8d6a 100644 --- a/ui/marketplace/MarketplaceListWithScores/AppLink.tsx +++ b/ui/marketplace/MarketplaceListWithScores/AppLink.tsx @@ -31,6 +31,7 @@ const AppLink = ({ app, isLoading, onAppClick, isLarge = false }: Props) => { alignItems="center" justifyContent="center" mr={ isLarge ? 3 : 4 } + flexShrink={ 0 } >