adde cors

This commit is contained in:
FahadKhalid210 2024-04-16 17:09:12 +05:00 committed by Fahad Khalid
parent 3190feacb8
commit 684cd3c3d8
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1 @@
- [Improvement] Added CORS for embeded Dashboards. (by @Fahadkhalid210)

View File

@ -162,4 +162,13 @@ FEATURE_FLAGS = {
"EMBEDDED_SUPERSET": True
}
# Embedded Dashboard CORS
ENABLE_CORS=True
CORS_OPTIONS={
"supports_credentials": True,
"allow_headers": ["*"],
"resources": ["*"],
'origins': ["{{ LMS_HOST }}","{{ CMS_HOST }}"],
}
{{ patch("cairn-superset-settings") }}