bmhxt5
bmhxt5

Reputation: 69

How do I secure a stylesheet?

Can anyone clarify this message? I think it's why I lost all my styling on my shopping cart.

Mixed Content: The page at 'https://www.redsgear.com/checkout/cart/' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Oswald'. This request has been blocked; the content must be served over HTTPS.

Upvotes: 4

Views: 10599

Answers (3)

nkeledjian
nkeledjian

Reputation: 11

I came across this issue just recently using the ionicframework CDN, hosting files with GitHub pages and lalna s m's method above worked.

Changed http: 
<link href="http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet" type="text/css">

To https:
<link href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet" type="text/css">

Upvotes: 0

lalna s m
lalna s m

Reputation: 11

simply change HTTP to HTTPS in your source code.

Upvotes: 1

user3155561
user3155561

Reputation:

change http://fonts.googleapis.com/css?family=Oswald to //fonts.googleapis.com/css?family=Oswald

Upvotes: 11

Related Questions