Access assets on https servers with basic authentication


#1

I was wondering if it might be possible to access models textures etc from https website requiring http authentication.
This modality might be interesting for people willing to have a better control on their files being transmitted without control.
In my case I was trying to use some storage box data as asset servers, but it appears they can only work with https and basic authentication, this is why I was curious about this possibility.


#2

You should be able to pass the basic authentication with the following:
http://username:password@example.com

Now, if this were to work with https, I don’t know, but that may work for basic authentication. I’m not sure how well the caching system would work with it.


#3

You could use authentication with Amazon S3 in Javascript

https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/configuring-the-jssdk.html