PHP Classes

File: examples/example3.js

Recommend this page to a friend!
  Classes of Tom Postma   PHP Content Security Policy generator   examples/example3.js   Download  
File: examples/example3.js
Role: Auxiliary data
Content type: text/plain
Description: Dependency for example3.
Class: PHP Content Security Policy generator
Generate CSP headers to prevent security attacks
Author: By
Last change:
Date: 8 years ago
Size: 379 bytes
 

Contents

Class file image Download
"use strict"; var xmlhttp = new XMLHttpRequest(); xmlhttp.onreadystatechange = function() { if (xmlhttp.readyState === 4 && xmlhttp.status === 200) { var xmldoc = xmlhttp.responseXML; document.getElementById("result").textContent = xmldoc.getElementsByTagName("response")[0].textContent; } }; xmlhttp.open('GET', '?getresponse=1', true); xmlhttp.send();