Add new method Endpoint.updateHeaders and use this to add nonce required by FileService