Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show fonts using HTTP or HTTPS depending on parent page #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ahus1
Copy link

@ahus1 ahus1 commented Sep 1, 2019

This should fix the following warning in the browser:

Mixed Content: The page at 'https://moosehead.javazone.no/#/' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,700,900'. This request has been blocked; the content must be served over HTTPS.

I tested it locally by running no.java.moosehead.web.WebServer from the IDE and it still works with http when I test locally. Please re-check if the warning is gone once the app has been redeployed.

After this change it will no longer work opening the HTML directly in the browser for development (if that is how development is done here). If this would be the case, consider hardcoding "https" as a prefix.

For more information on this: https://www.amixa.com/blog/2012/06/06/how-to-use-google-fonts-under-both-ssl-and-non-ssl-without-ssl-insecure-messages/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant