Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Commit 18d97a7

Browse files
authored
docs: Add CSRF issue to Past Problems (#1270)
1 parent 8fc5a9f commit 18d97a7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/troubleshoot_general_tips.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,17 @@ Cannot run ``make upgrade`` in lms shell due to missing wget
284284

285285
This error was `introduced <https://github.com/openedx/edx-platform/pull/33271>`_ and `resolved <https://github.com/openedx/edx-platform/pull/33288>`_ in September 2023. While this can be solved by updating your devstack, you can also run ``apt update; apt install wget`` from lms-shell to resolve this temporarily.
286286

287+
CSRF errors with MFEs after Django 4.2 upgrade
288+
----------------------------------------------
289+
290+
When using an MFE in devstack, a call to a service fails with 403 Forbidden and these log messages::
291+
292+
CSRF verification failed. Request aborted.
293+
294+
Origin checking failed - http://localhost/:{your MFE / service port} does not match any trusted origins.
295+
296+
This may be caused by an upgrade to Django 4.2, which has changes to CSRF checking. The upgrade occurred in early February 2024 in edx-platform, but may occur at other times in IDAs. In edx-platform, this was fixed by `setting CSRF trusted origins in devstack.py <https://github.com/openedx/edx-platform/pull/34192/files>`_.
297+
287298
.. _update your repos and pull the latest images:
288299

289300
Updating Devstack

0 commit comments

Comments
 (0)