You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-16Lines changed: 2 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,30 +151,16 @@ If you want to test changes to frontend-platform against a micro-frontend locall
151
151
152
152
## Getting the example app to work with a tutor dev environment
153
153
154
-
Part of the example app functionality includes an API request to get the logged in user's profile information. This request will fail by default due to CORS restrictions. One way to overcome this is to create a tutor plugin that patches the settings needed for the request to be allowed.
155
-
156
-
1. Create an `example.py` file with the following contents:
154
+
Part of the example app functionality includes an API request to get the logged in user's profile information. This request will fail by default due to CORS restrictions. To overcome this, patch `openedx-lms-development-settings` with the following settings (via a tutor plugin):
157
155
158
156
```python
159
-
from tutor import hooks
160
-
161
-
hooks.Filters.ENV_PATCHES.add_items([
162
-
(
163
-
"openedx-lms-development-settings",
164
-
"""
165
157
# Used for the example app in the frontend-plugin library
0 commit comments