{
"Hosting": {
//Set to "true" the settings below if your hosting uses a load balancer. It'll be used to determine whether the current request is HTTPS
"UseHttpClusterHttps": false,
"UseHttpXForwardedProto": false,
//Use the setting below if your hosting doesn't use "X-FORWARDED-FOR" header to determine IP address.
//In some cases server use other HTTP header. You can specify a custom HTTP header here. For example, CF-Connecting-IP, X-FORWARDED-PROTO, etc
"ForwardedHttpHeader": "",
//Use a reverse proxy server - more information you can find at: https://docs.microsoft.com/en-US/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-2.1
"UseForwardedHeaders": true
},
SSL issue of favicon.ico
Monday, November 25, 2024 10:21:53 PM
The SSL setup does not work correctly because the path to the favicon.ico file is "http". How can I fix? I've also set it up as shown below in the appsettings.json file. Is there there any change i need on this file?
sarac
0
Yılmaz wrote:
PrepareFavicon() is using GetStoreLocation(). As you may see, there is ssl bool - to use https or not.
See topic here, "Http scheme is https" is true?
The SSL setup does not work correctly because the path to the favicon.ico file is "http".
PrepareFavicon() is using GetStoreLocation(). As you may see, there is ssl bool - to use https or not.
See topic here, "Http scheme is https" is true?
Best regards,
Tomasz
GrandNode Team
Tomasz
GrandNode Team
0
Dear All,
Could you tell me how I can to fix that problem?
index2:1 Mixed Content: The page at 'https://Mysite.com/home/index2' was loaded over HTTPS, but requested an insecure favicon 'http://Mysite.com/favicon.ico'. This request has been blocked; the content must be served over HTTPS.
Could you tell me how I can to fix that problem?
index2:1 Mixed Content: The page at 'https://Mysite.com/home/index2' was loaded over HTTPS, but requested an insecure favicon 'http://Mysite.com/favicon.ico'. This request has been blocked; the content must be served over HTTPS.
0
Ok, after following https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-2.1&tabs=aspnetcore2x everything looks good.
I have change
server_name mysite.fr; to server_name mysite.fr *.mysite.fr;
and add proxy_set_header X-Forwarded-Proto $scheme;
i'm not the best to configure nginx/https but it's look better right now.
Sorry for the disturb
I have change
server_name mysite.fr; to server_name mysite.fr *.mysite.fr;
and add proxy_set_header X-Forwarded-Proto $scheme;
i'm not the best to configure nginx/https but it's look better right now.
Sorry for the disturb
1