Giter VIP home page Giter VIP logo

Comments (3)

dosubot avatar dosubot commented on August 28, 2024 2

To address the issue with the "X-Frame-Options" header not being overridden as expected in Superset v3.1.3, consider using the EmbeddedDashboard model's allow_domain_list attribute for a more secure and maintainable solution. This approach allows specifying domains permitted to embed a dashboard, offering granular control over embedding permissions without directly manipulating HTTP headers.

Here's a brief guide:

  1. Ensure your dashboard is linked with an EmbeddedDashboard configuration in the database.
  2. Use the allow_domain_list attribute to include domains you wish to allow for embedding, such as "http://localhost:5173".

This method is preferable for managing embedding permissions and mitigates potential security risks associated with improper HTTP header configurations.

Regarding the configurations OVERRIDE_HTTP_HEADERS, HTTP_HEADERS, and DEFAULT_HTTP_HEADERS, their order of precedence is as follows:

  1. OVERRIDE_HTTP_HEADERS
  2. HTTP_HEADERS
  3. DEFAULT_HTTP_HEADERS

OVERRIDE_HTTP_HEADERS will override any settings in HTTP_HEADERS and DEFAULT_HTTP_HEADERS, with HTTP_HEADERS taking precedence over DEFAULT_HTTP_HEADERS. This setup ensures that your most critical overrides are always prioritized.

For more detailed implementation, refer to the Superset repository, specifically the files related to the EmbeddedDashboard model and the config.py for HTTP headers configuration.

Details

Sources


About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a πŸ‘ if this is helpful and πŸ‘Ž if it is irrelevant.

To continue the conversation, mention @dosu.

from superset.

spars57 avatar spars57 commented on August 28, 2024 1

I found out the solution, I had to configure Talisman like this on config.py:
TALISMAN_ENABLED = True
TALISMAN_DEV_CONFIG = {
...
"frame_options": 'ALLOWALL',
'frame_options_allow_from': '*',
}

from superset.

rusackas avatar rusackas commented on August 28, 2024

Curious why you closed it... did the bot help? We're still trying to figure out how useful it is :)

from superset.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.