-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Cloudinary admin url update: fixes #2724 #4175
Conversation
Changes: Cloudinary fields pass down `secure` property with their `getOptions` call. When a url is created, the secure property is added.
Does |
@sktt secure does mean over https, and it was a legacy implementation we are working on moving away from. |
Any word on this being merged? |
this._originalGetOptions(); | ||
// We are performing the check here, so that if cloudinary secure is added | ||
// to keystone after the model is registered, it will still be respected. | ||
// Setting secure overrides default `cloudinary secure` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've got me curious. What's the use case for setting secure
/cloudinary secure
after the models have been registered?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's mostly about the ordering of your keystone.js
file. It is possible and valid to import your models and then after that line set cloudinary secure
, however rather obtusely without checking again, you can end up not applying the option it looks like you set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Thanks for the explanation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Changes:
Cloudinary fields pass down
secure
property with theirgetOptions
call.
When a url is created by the admin UI, the secure property is added. This is handled at each location an image is referenced.