Lothiraldan / saltpad

A gui and cli to manage saltstack deployments
Other
661 stars 149 forks source link

MIxed content error when trying to run in SSL mode. #115

Open TheBigBear opened 8 years ago

TheBigBear commented 8 years ago

Whne I try to run with SSL enabled I get a mixed content error blocking the loading of the page.

Mixed Content: The page at 'https://saltpad.xx.xxx/login' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Roboto:400,700,900'. This request has been blocked; the content must be served over HTTPS.
mixed content

How do I get past this?

Lothiraldan commented 8 years ago

The font is loaded over http instead of https right, I will fix it but it shouldn't block your utilization of saltpad.

TheBigBear commented 8 years ago

Thanks. I am just grasping at straws at the moment to try finding out what it is that stops me from seeing anything at all beyond the login screen.

Lothiraldan commented 8 years ago

I think it is related to https://github.com/tinyclues/saltpad/issues/116

TheBigBear commented 8 years ago

@Lothiraldan, would this do it?

http://www.amixa.com/blog/2012/06/06/how-to-use-google-fonts-under-both-ssl-and-non-ssl-without-ssl-insecure-messages/

Simply changing the import like this? from: @import url(http://fonts.googleapis.com/css?family=Roboto:400,700,900); change it to: @import url(//fonts.googleapis.com/css?family=Roboto:400,700,900);

I tested it here and it works for me. PR is here ( https://github.com/tinyclues/saltpad/pull/117 )

But as you said it had NO effect on me getting any further to see past the login screen. ;-(

Lothiraldan commented 8 years ago

Thanks to your PR, could we close this issue?

TheBigBear commented 8 years ago

Yes