HTMLEditor with authentication gives 401

The Bearer token seems to be missing when calling the upload controller from UploadUrl.