Answers for "Ajax Mixed content blocked"

0

Ajax Mixed content blocked

if (window.location.protocol.indexOf('https') == 0){
  var el = document.createElement('meta')
  el.setAttribute('http-equiv', 'Content-Security-Policy')
  el.setAttribute('content', 'upgrade-insecure-requests')
  document.head.append(el)
}
Posted by: Guest on October-28-2021

Code answers related to "Ajax Mixed content blocked"

Code answers related to "Javascript"

Browse Popular Code Answers by Language