diff --git a/airflow-core/src/airflow/ui/src/pages/Iframe.tsx b/airflow-core/src/airflow/ui/src/pages/Iframe.tsx index b6e3aa00cc911..ae67820700f93 100644 --- a/airflow-core/src/airflow/ui/src/pages/Iframe.tsx +++ b/airflow-core/src/airflow/ui/src/pages/Iframe.tsx @@ -24,7 +24,7 @@ import { ProgressBar } from "src/components/ui"; import { ErrorPage } from "./Error"; -export const Iframe = () => { +export const Iframe = ({ sandbox = "allow-same-origin allow-forms" }: { readonly sandbox: string }) => { const { page } = useParams(); const { data: pluginData, isLoading } = usePluginServiceGetPlugins(); @@ -44,10 +44,6 @@ export const Iframe = () => { return ; } - // The following iframe sandbox setting is intentionally less restrictive. - // ONLY trusted contents can be framed within Iframe. - const sandbox = "allow-same-origin allow-forms"; - return (