api icon indicating copy to clipboard operation
api copied to clipboard

Allow Content-Type to contain 'charset=UTF-8' in POST requests

Open jean-luc opened this issue 6 years ago • 0 comments

Expected behavior

When making a POST requst – for example when authenticating via /token – API should should accept the request even if charset=UTF-8 is present in the Content-Type header.

For example "Content-Type: application/json;charset=UTF-8"

Actual behavior

API throws an Invalid Credentials error if Content-Type include charset=UTF-8. Common frontend libraries like Axios append charset to Content-Type in POST requests by default.

jean-luc avatar Oct 11 '19 09:10 jean-luc