Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access Secure URL in Helper #77

Open
goodwench opened this issue Mar 10, 2016 · 3 comments
Open

Access Secure URL in Helper #77

goodwench opened this issue Mar 10, 2016 · 3 comments

Comments

@goodwench
Copy link

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

@Lepozepo
Copy link
Owner

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

@petestreet
Copy link

petestreet commented May 12, 2016

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.

@fabyeah
Copy link

fabyeah commented Jul 21, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants