Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all,
I noticed that when running local (development mode). The url of nodes (or media items) generated http or https based on the url. For example:
This is also same when doing content.Url(mode: UrlMode.Absolute) in razor view page
But when the site hosted. If we access url with https the URLs generated are non-https.
Is that because my any mistake?
Thanks for any help!
Do you have CDN like Cloudflare or another?
Hi Yakov,
Yes I do. We are using Cloudflare
For more about my site, I cannot set UseHttps to true (appsettings.json) because of some conflict in server configuration. If set to true, I will get too many redirects error
it depend on claudflare ssl mode, cloudflare doing ssl teremination. If it flexible website working on 80.
you can define host header on homepage, techicle it should work with reading header from request
app.UseForwardedHeaders(new ForwardedHeadersOptions { ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto });
Thank you Yakov,
Let me try, do I need to push that line before/after any app. ? For example app.UseUmbraco()
Hello Yakov,
I tried but it still does not work. Do you have any other advice?
Thanks!
Marcus
before UseUmbraco
Do you know how Cloudflare defined?
The simple solution is add hostname to you website to be with https
I will ask to try your advice
Thank you
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Umbraco 13.3.0 - URLs generated are non-https
Hi all,
I noticed that when running local (development mode). The url of nodes (or media items) generated http or https based on the url. For example:
This is also same when doing content.Url(mode: UrlMode.Absolute) in razor view page
But when the site hosted. If we access url with https the URLs generated are non-https.
Is that because my any mistake?
Thanks for any help!
Do you have CDN like Cloudflare or another?
Hi Yakov,
Yes I do. We are using Cloudflare
For more about my site, I cannot set UseHttps to true (appsettings.json) because of some conflict in server configuration. If set to true, I will get too many redirects error
it depend on claudflare ssl mode, cloudflare doing ssl teremination. If it flexible website working on 80.
you can define host header on homepage, techicle it should work with reading header from request
Thank you Yakov,
Let me try, do I need to push that line before/after any app. ? For example app.UseUmbraco()
Hello Yakov,
I tried but it still does not work. Do you have any other advice?
Thanks!
Marcus
before UseUmbraco
Do you know how Cloudflare defined?
The simple solution is add hostname to you website to be with https
Hi Yakov,
I will ask to try your advice
Thank you
is working on a reply...