update cors and readme
This commit is contained in:
parent
8d3b09afa0
commit
dc62599565
@ -240,6 +240,13 @@ Postgresql/Superset settings
|
||||
- ``CAIRN_POSTGRESQL_PASSWORD`` (default: ``"{{ 20|random_string }}"``): Postgresql password.
|
||||
- ``CAIRN_SUPERSET_SECRET_KEY`` (default: ``"{{ 20|random_string }}"``): randomly-generated secret key for the Superset frontend.
|
||||
|
||||
Add/Update Superset Configurations
|
||||
----------------------------------
|
||||
|
||||
Use ``cairn-superset-settings`` patch to add or update `Superset configurations <https://github.com/apache/superset/blob/master/superset/config.py>`__.
|
||||
Then apply changes with::
|
||||
tutor local launch
|
||||
|
||||
Troubleshooting
|
||||
---------------
|
||||
|
||||
|
||||
@ -163,12 +163,17 @@ FEATURE_FLAGS = {
|
||||
}
|
||||
|
||||
# Embedded Dashboard CORS
|
||||
OPENEDX_CMS_ROOT_URL = "{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ CMS_HOST }}"
|
||||
|
||||
if os.environ.get("FLASK_ENV") == "development":
|
||||
OPENEDX_CMS_ROOT_URL = "http://{{ CMS_HOST }}:8001"
|
||||
|
||||
ENABLE_CORS=True
|
||||
CORS_OPTIONS={
|
||||
"supports_credentials": True,
|
||||
"allow_headers": ["*"],
|
||||
"resources": ["*"],
|
||||
'origins': ["{{ LMS_HOST }}","{{ CMS_HOST }}"],
|
||||
"origins": [
|
||||
f"{OPENEDX_LMS_ROOT_URL}",
|
||||
f"{OPENEDX_CMS_ROOT_URL}"
|
||||
],
|
||||
}
|
||||
|
||||
{{ patch("cairn-superset-settings") }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user