Skip to content

Commit

Permalink
config: enabled embedded dashboards
Browse files Browse the repository at this point in the history
  • Loading branch information
nexovec committed Jan 24, 2024
1 parent 09051e0 commit d9c79d5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,8 +749,14 @@ class D3Format(TypedDict, total=False):
STORE_CACHE_KEYS_IN_METADATA_DB = False

# CORS Options
ENABLE_CORS = False
CORS_OPTIONS: dict[Any, Any] = {}
ENABLE_CORS = True
CORS_OPTIONS: CORS_OPTIONS = {
'supports_credentials': True,
'allow_headers': ['*'],
'expose_headers': ['*'],
'resources':['*'],
'origins': ['*']
}

# Sanitizes the HTML content used in markdowns to allow its rendering in a safe manner.
# Disabling this option is not recommended for security reasons. If you wish to allow
Expand Down

0 comments on commit d9c79d5

Please sign in to comment.