Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix "insecure content was loaded over HTTPS, but requested an insecure resource"

Tags:

html

https

This URL: https://slowapi.com

I can't find the insecure content and the Chrome keeps complaining,

Any ideas?

enter image description here

like image 795
justyy Avatar asked Feb 03 '16 13:02

justyy


People also ask

How do I fix insecure blocked in Chrome?

Just right-click the Google Chrome icon on your desktop, or inside the Windows Start Menu, choose Properties and add the switch “—allow-running-insecure-content” to the target box. Restart Chrome to apply the changes and you won't see that yellow bar again.

How do I allow HTTP content in HTTPS?

One way to do it is to load the content server side and save the images and other things to your server and display them from https. You can also try using a service like embed.ly and get the content through them. They have support for getting the content behind https.


1 Answers

Update the links via adding a meta tag like below

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> 

Note: This is a hot fix when you update your production from non-ssl to ssl, anyway you have to fix all the links one by one to https.

like image 96
Bira Avatar answered Sep 20 '22 08:09

Bira