apply change from https://github.com/openlayers/openlayers/pull/757 which is needed to send the token along