Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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)
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Ajax #Mixed #content #blocked
ADD COMMENT
Topic
Name
7+1 =