cloudinary
cloudinary copied to clipboard
Access Secure URL in Helper
Is there a way to access the secure_url in the helper? I tried c.secure_url and it didn't return anything.
Hey, c.url simply wraps cloudinaryJS. It's very likely that cloudinary automatically detects your protocol and serves a matching url. Let me know!
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.
I was wondering the same thing. Thanks @petestreet for the answer. Guess this can be closed?