Reputation: 6206
Using the regular cl_image_tag(carrierwave_object)
will always produce an http://cloudinary-url
URL, which fails to load on most browsers if they connected to the website through https. Is it possible to make cloudinary serve URLs such as //cloudinary-url
so that the browser can choose the protocol itself, without finding every single cl_image_tag
call and changing it manually?
Note that I'm using the cloudinary_rb
gem with Rails 3.2.x
Thanks!
Upvotes: 0
Views: 812
Reputation: 6946
You can use cloudinary over https
That wouldn't be a problem for non-https users of your site cause there's no security warning in that direction...
Upvotes: 2
Reputation: 8295
You could create a helper that would take a url and generate an http
or https
url depending on what case you are. You can always know in your views / helpers if you are on http
or https
from your request
object.
Upvotes: 0