mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-09 08:06:58 +01:00
fix(iframe): allow clicking links within (#4521)
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user