Django RedirectView CSRF verification failed. Request aborted

Viewed 35

I ran into a problem when redirecting a request through RedirectView. It returns a 403 CSRF verification failed Request aborted response. Why?

Here are the contents of my project/urls.py file:

urlpatterns = [
path('v2/partner/products/groups', RedirectView.as_view(url=f"{abm_url.ABM_URL}/v2/partner/products/groups"))]
0 Answers
Related