My URLs are returned in the HTTP instead of HTTPS.
AjLab
Member Posts: 2 ✭
Hello,
I am a beginner developer and I have been very happy with cloudinary for my asp.net core web api image upload, but the upload result returns a http url instead of https even after setting my params up like so
var account = new Account(
cloudinarySettings.CloudName,
cloudinarySettings.ApiKey,
cloudinarySettings.ApiSecret);
var cloudinary = new Cloudinary(account);
cloudinary.Api.Secure = true;
Please help me..
Tagged:
0
Answers
-
Hi @AjLab ,
I have tried your code and I do get "url" and "secure_url".
Try the following:
cloudinary = new Cloudinary(account);
cloudinary.Api.Secure = true;
var result = cloudinary.GetResource("sample");
Console.WriteLine(result.JsonObj.ToString());
Please let me know how it goes.
Regards,
Wissam
1