SSL issue of favicon.ico

Friday, April 19, 2024 9:59:28 AM
  • Posted: Friday, December 27, 2019 6:57 PM
  • 4
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?

{
  "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
  },



sarac
0
  • Posted: Monday, December 30, 2019 7:38 AM
  • 74
Yılmaz wrote:
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
0
  • Posted: Thursday, April 16, 2020 11:22 AM
  • 13
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.
0
  • Posted: Friday, April 17, 2020 8:21 AM
  • 953
Hi,
It looks like you have problems with SSL configuration. Can you check the Admin panel -> System -> System information and provide the values for HTTP Schema and Is https?

Cheers,
Best regards,
Patryk

GrandNode Team
0
  • Posted: Sunday, July 5, 2020 12:33 PM
  • 23
Hello, I have the same issue, maybe I have missed something.

Http request scheme: http
Http scheme is https: False

How do you have configure your nginx files?

Cheers
0
  • Posted: Sunday, July 5, 2020 2:25 PM
  • 23
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
1
  • Posted: Monday, July 6, 2020 5:41 AM
  • 953
Hello Cedric,

If you receive following responses:
Http request scheme: http
Http scheme is https: False

It's 99,9% sure that it's something with broken nginx/apache configuration. I'm happy that everything is ok now! :)
Best regards,
Patryk

GrandNode Team
0
back to top
Filters