Bad Request Error (400) after $.ajax POST on OAuth module

When I modify:

<headers disabled="true"/> by <headers disabled="false"/>

this error happens again: Problem using JQuery with OAuth2 module

For that reason you are not able to select a patient, and it is not possible to arrive at the error.

Using:

<http-basic/>
<headers disabled="true"/>

The problem keeps happening.

Maybe this related to the problem of jquery. :thinking: