Issue with using https protocol

preview

#1

because c9 creates the web page with the https protocol, any src=“file” references have to be https as well and i’m having trouble getting this to work on code from a web site that was previously served thru http… i’m now getting “connection refused”

Any idea what i’m doing wrong?


#2

You don’t have to use the direct urls. just make them absolute to the domain.

For example, you have this: https://example.com/images/apic.jpg in your code, just specify the source as /images/apic.jpg. That way everything is portable and you won’t have any issues.


#3

Hi,

Another thing to note here is that https is only enforced with the Cloud9 Preview. If you visit your application URL using a separate tab, you can use ‘http’ instead of https.

I hope this helps.

Regards,
​Mutahhir


#4

thanks! didn’t know that…very helpful