Added application/json header to token endpoint