强制Cloudinary URL使用HTTPS

时间:2018-08-16 20:07:10

标签: https cloudinary keystone

我正在尝试找出如何强制Cloudinary在Keystone中使用HTTPS。

在实际的post.hbs页面中尝试使用{{cloudinaryUrl图片宽度= 500高度= 500作物=“填充”安全=“真”}},但没有运气。

我已经看到了这件事,但无法弄清该人指的是哪个文件。

cloudinary config

1 个答案:

答案 0 :(得分:2)

如果您正在使用http服务页面,但您想将cloudinary强制为https,则可以在keystone.init函数中设置该选项:'cloudinary secure':true,

此选项映射到here

描述的云选项上
elements to embed is in a html file named-index.html
the html file is also on a site like someexamplesite.com/pages.html 
logic and style in a js file: simpleinterest.js

启用此选项后,当您打印src图像时,将http更改为https协议:

keystone.init({
    'name': 'xyz',
    ...
    'cloudinary secure': true,
    ....
相关问题