I have set up django-rest-auth as per the installation tutorial, yet I am not able to use the login API endpoint. When I send a POST request with the correct information, I receive a 405 status error in response with "Method "GET" not allowed."
However, when I navigate to the actual URL and POST it from the online form, it works fine and returns a token.
Help?!
Example with Postman:
https://i.imgur.com/574rERm.png
Example with Axios:
axios.post('http://----.com/api/accounts/login/', data: {'username': ---, 'password': ---})
.then(function (response) {console.log(response);})
.catch(function (response) {console.log(response);})
UPDATE:
This seems to be an issue with possibly Heroku or Gunicorn? The website is deployed on Heroku using Gunicorn, but all POST Requests are being received as GET requests.