Open vthily opened 3 years ago
... # Inside the features
'ENABLE_CORS_HEADERS': True,
'ENABLE_CROSS_DOMAIN_CSRF_COOKIE': True,
...
CORS_ORIGIN_WHITELIST = ['live.steamforvietnam.org', 'www.live.steamforvietnam.org', 'live.steamforvietnam.net', 'www.live.steamforvietnam.net']
CORS_ORIGIN_ALLOW_ALL = False
LOGIN_REDIRECT_WHITELIST = []
############### Settings for video pipeline ##################
VIDEO_UPLOAD_PIPELINE = {
'BUCKET': '',
'ROOT_PATH': '',
}
# Allows to configure the LMS to provide CORS headers to serve requests from other domains
'ENABLE_CORS_HEADERS': True,
"ENABLE_CROSS_DOMAIN_CSRF_COOKIE": true
},
"CROSS_DOMAIN_CSRF_COOKIE_DOMAIN": "steamforvietnam.net",
"CROSS_DOMAIN_CSRF_COOKIE_NAME": "steamvn-csrftoken",
"CSRF_TRUSTED_ORIGINS": ["live.steamforvietnam.org", "www.live.steamforvietnam.org", "live.steamforvietnam.net", "www.live.steamforvietnam.net"],
Enable requests from liveapp (CORS, CSRF)
-The current app in steamforvietnam.org is working fine. -Settings in steamforvietnam.net is NOT working (changes related to the koa.2 codebase, some environment variables are deprecated or moved).