Skip to content

Commit f7f0836

Browse files
authored
chore: Enterprise Checkout MFE allowed to POST to LMS & enterprise-access (#168)
1 parent 37825d5 commit f7f0836

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

py_configuration_files/cms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
289289

290290
# MFEs that will call this service in devstack
291291
CSRF_TRUSTED_ORIGINS = [
292-
'http://localhost:2001', # frontend-app-course-authoring
293-
'http://localhost:1992', # frontend-app-ora
292+
COURSE_AUTHORING_MICROFRONTEND_URL, # frontend-app-course-authoring
293+
ORA_MICROFRONTEND_URL, # frontend-app-ora
294294
'http://localhost:1999', # frontend-app-authn
295295
]
296296

py_configuration_files/enterprise_access.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373

7474
# CORS CONFIG
7575
CORS_ORIGIN_WHITELIST = [
76+
'http://localhost:1989', # frontend-app-enterprise-checkout
7677
'http://localhost:1991', # frontend-app-admin-portal
7778
'http://localhost:8734', # frontend-app-learner-portal-enterprise
7879
'http://localhost:18450', # frontend-app-support-tools
@@ -81,6 +82,7 @@
8182

8283
# CSRF CONFIG
8384
CSRF_TRUSTED_ORIGINS = [
85+
'http://localhost:1989', # frontend-app-enterprise-checkout
8486
'http://localhost:1991', # frontend-app-admin-portal
8587
'http://localhost:8734', # frontend-app-learner-portal-enterprise
8688
'http://localhost:18450', # frontend-app-support-tools

py_configuration_files/lms.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -551,18 +551,18 @@ def should_show_debug_toolbar(request): # lint-amnesty, pylint: disable=missing
551551
# MFEs that will call this service in devstack
552552
CSRF_TRUSTED_ORIGINS = [
553553
'http://localhost:2001', # frontend-app-course-authoring
554-
'http://localhost:1997', # frontend-app-account
555-
'http://localhost:1995', # frontend-app-profile
556-
'http://localhost:1992', # frontend-app-ora
557-
'http://localhost:2002', # frontend-app-discussions
558-
'http://localhost:1991', # frontend-app-admin-portal
559-
'http://localhost:8734', # frontend-app-learner-portal-enterprise
560-
'http://localhost:1989', # frontend-app-enterprise-checkout
561-
'http://localhost:1999', # frontend-app-authn
554+
ACCOUNT_MICROFRONTEND_URL, # frontend-app-account
555+
PROFILE_MICROFRONTEND_URL, # frontend-app-profile
556+
ORA_MICROFRONTEND_URL, # frontend-app-ora
557+
DISCUSSIONS_MICROFRONTEND_URL, # frontend-app-discussions
558+
ENTERPRISE_ADMIN_PORTAL_BASE_URL, # frontend-app-admin-portal
559+
ENTERPRISE_LEARNER_PORTAL_BASE_URL, # frontend-app-learner-portal-enterprise
560+
ENTERPRISE_CHECKOUT_BASE_URL, # frontend-app-enterprise-checkout
561+
AUTHN_MICROFRONTEND_URL, # frontend-app-authn
562562
'http://localhost:18450', # frontend-app-support-tools
563-
'http://localhost:1994', # frontend-app-gradebook
564-
'http://localhost:1996', # frontend-app-learner-dashboard
565-
LEARNING_MICROFRONTEND_URL # frontend-app-learning
563+
WRITABLE_GRADEBOOK_URL, # frontend-app-gradebook
564+
LEARNER_HOME_MICROFRONTEND_URL, # frontend-app-learner-dashboard
565+
LEARNING_MICROFRONTEND_URL, # frontend-app-learning
566566
]
567567

568568
############################ Codejail ############################

0 commit comments

Comments
 (0)