[Fixed]-Django rest framework comment form not sending data (how to send and recieve json data using angular js)

1👍

As I see on your current page there is 403 error, caused by csrf protection check.

Set csrf cookie name in your angularjs config() function according to django’s values https://docs.djangoproject.com/en/1.10/ref/csrf/#ajax

$httpProvider.defaults.xsrfCookieName = 'csrftoken';
$httpProvider.defaults.xsrfHeaderName = 'X-CSRFToken';
👤atn

Leave a comment