baguskna opened a new issue, #21829:
URL: https://github.com/apache/superset/issues/21829
Hi, I have successfully embedded the dashboard and we want feature export to
.CSV , but it is not working it said
```
Blocked opening 'URL' in a new window because the request was made in a
sandboxed frame whose 'allow-popups' permission is not set.
Blocked form submission to 'URL' because the form's frame is sandboxed and
the 'allow-forms' permission is not set.
```
I was able to override the iframe with this way
```
const embed = await embedDashboard({
id: dashboardId,
supersetDomain: URL,
mountPoint: document.querySelector("#superset-id"),
fetchGuestToken: () => guestToken,
dashboardUiConfig: {
hideTitle: true,
hideChartControls: false,
hideTab: true,
},
});
const size = await embed.getScrollSize();
if (size.width !== 0) {
const iframe = document.querySelector("iframe") as HTMLIFrameElement;
iframe.setAttribute(
"sandbox",
"allow-same-origin allow-scripts allow-presentation allow-downloads
allow-forms allow-popups allow-popups-to-escape-sandbox"
);
}
```
still it returns the same error as I mentioned above, by any chance is there
a way we can fix this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]