dosubot[bot] commented on issue #31434: URL: https://github.com/apache/superset/issues/31434#issuecomment-2541294709
<!-- Greeting --> Hey @RealTun, I'm here to assist you with the issue you're facing in embedding the Superset dashboard. I can help you with bug fixes, answering questions, and even guide you on how to become a contributor. Let's tackle this together! <!-- Answer --> I found some similar discussions that might help you resolve the issue with embedding a Superset dashboard in a public website: 1. [Embed charts with iframe without any login](https://github.com/apache/superset/discussions/28407) - This discussion suggests configuring Talisman in the `config.py` file to allow embedding by setting `frame_options` to `'ALLOWALL'` and `frame_options_allow_from` to `'*'`. 2. [Not able to embed superset in iframe](https://github.com/apache/superset/discussions/23373) - This discussion also deals with iframe embedding issues. To resolve the 'X-Frame-Options' error, you should modify the `superset_config.py` file to adjust the Content Security Policy (CSP) settings using `flask-talisman`. Specifically, configure the `frame-ancestors` directive to allow your domain: ```python TALISMAN_ENABLED = True TALISMAN_CONFIG = { "content_security_policy": { "frame-ancestors": ["*.my-domain.com", "*.another-domain.com"], } } ``` After making these changes, restart Superset to apply the new configuration <sup>[[1]](https://github.com/apache/superset/blob/master/docs/docs/configuration/networking-settings.mdx)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/131e1cfb-36c6-48de-a126-3b26069445f6?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/131e1cfb-36c6-48de-a126-3b26069445f6?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/131e1cfb-36c6-48de-a126-3b26069445f6?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/131e1cfb-36c6-48de-a126-3b26069445f6?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/131e1cfb-36c6-48de-a126-3b26069445f6?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/131e1cfb-36c6-48de-a126-3b26069445f6?feedback_type=other)</sup> -- 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]
