0

I'm trying to enable Payment module for courses and when I'm clicking checkout, I'm getting "CSRF verification failed. Request aborted." . I've tried adding my domain to "Home › Cors_Csrf › X domain proxy configurations › XDomainProxyConfiguration()" in Django admin panel. Even modified lms.env.json to add "ENABLE_CROSS_DOMAIN_CSRF_COOKIE": true, " ... still facing the issue. Can anyone please help.

Google group message link : https://groups.google.com/d/msg/edx-code/4VnLJG-raPE/llF1PDG9AQAJ

1 Answers1

1

Possibly you're not including the CSRF token in your form. In your template, it should look like:

<form action="post">
    {% csrf_token %}
    {{form.as_p}}
</form>

I don't know the library you're using, that was just general Django commentary. Hopefully it's helpful.

Sam Bobel
  • 1,784
  • 1
  • 15
  • 26