#488 Restricting download and write api views to https protocol. Tessting with enforce secure connection for oauth2.provider