cloudinary icon indicating copy to clipboard operation
cloudinary copied to clipboard

Access Secure URL in Helper

Open goodwench opened this issue 9 years ago • 3 comments

Is there a way to access the secure_url in the helper? I tried c.secure_url and it didn't return anything.

goodwench avatar Mar 10 '16 20:03 goodwench

Hey, c.url simply wraps cloudinaryJS. It's very likely that cloudinary automatically detects your protocol and serves a matching url. Let me know!

Lepozepo avatar Mar 11 '16 04:03 Lepozepo

Hi @lkula and @Lepozepo, I was just trying this out and found that "secure" is an optional parameter of the options object inside cloudinaryJS. So using {{c.url public_id secure=true width=...}} pulls the image from its https link. Hope that helps.

petestreet avatar May 12 '16 23:05 petestreet

I was wondering the same thing. Thanks @petestreet for the answer. Guess this can be closed?

fabyeah avatar Jul 21 '16 22:07 fabyeah