Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

fix(iframe): allow clicking links within (#4521)

Meier Lukas5a418d73bdb0
diff --git a/packages/widgets/src/iframe/component.tsx b/packages/widgets/src/iframe/component.tsx
index 05ab587a0..760c46b03 100644
--- a/packages/widgets/src/iframe/component.tsx
+++ b/packages/widgets/src/iframe/component.tsx
@@ -85,7 +85,13 @@ const getAllowedPermissions = (
const getSandboxFlags = (
permissions: Omit<WidgetComponentProps<"iframe">["options"], "embedUrl" | "allowScrolling">,
) => {
- const baseSandbox = ["allow-scripts", "allow-same-origin", "allow-forms", "allow-popups"];
+ const baseSandbox = [
+ "allow-scripts",
+ "allow-same-origin",
+ "allow-forms",
+ "allow-popups",
+ "allow-top-navigation-by-user-activation",
+ ];
if (permissions.allowFullScreen) {
baseSandbox.push("allow-presentation");