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
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -149,6 +149,33 @@ When making changes to frontend-platform, be sure to manually run the included e
149
149
150
150
If you want to test changes to frontend-platform against a micro-frontend locally, follow the directions here: https://github.com/openedx/frontend-build#local-module-configuration-for-webpack
151
151
152
+
## Getting the example app to work with a tutor dev environment
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:
157
+
158
+
```python
159
+
from tutor import hooks
160
+
161
+
hooks.Filters.ENV_PATCHES.add_items([
162
+
(
163
+
"openedx-lms-development-settings",
164
+
"""
165
+
# Used for the example app in the frontend-plugin library
0 commit comments