Skip to content

Instantly share code, notes, and snippets.

@beisong7
Created July 11, 2020 12:39
Show Gist options
  • Save beisong7/ef91673eb6b09f875e64aba98f6e6fc9 to your computer and use it in GitHub Desktop.
Save beisong7/ef91673eb6b09f875e64aba98f6e6fc9 to your computer and use it in GitHub Desktop.
Handle Mixed Content blocked - when https tries to make http request
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The line below allows http requests to be upgraded to https.
if the request was initially served over https it will be safe
-->
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<title> Index </title>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment