CSRF token error
Introduction
The CSRF middleware is the security layer in Django which provides a mechanism to avoid submitting sensitive information to a malicious site. Usually in this attack, the attacker did some modifications. For eg: changing url of the post request or changing email address.
In open edx if you are having issues regarding CSRF token missing or not found, then there are two possibilities for that.
- Either you have created a custom form and forgot to add csrf_token
- Using an old browser version
Solution
If you have created a custom form then you have to add the csrf token to it.
<form method="post">{% csrf_token %}
The second solution is to either update your browser or use a different browser such as chrome, firefox etc with the latest version.