Adds support for roles in POST requests as well (reads path from POST parameters when available)