Guest User

Untitled

a guest
Oct 26th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. $(document).ready(function() {
  2. function getUrlVars() {
  3. var vars = [], hash;
  4. var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
  5. for(var i = 0; i < hashes.length; i++) {
  6. hash = hashes[i].split('=');
  7. vars.push(hash[0]);
  8. vars[hash[0]] = hash[1];
  9. }
  10. return vars;
  11. }
  12. if(getUrlVars()["name"]) {
  13. $(".formResults").html(decodeURIComponent(getUrlVars()["name"]));
  14. }
  15. });
  16.  
  17. object-src 'none';
  18. script-src 'nonce-test123' 'unsafe-inline' 'unsafe-eval' 'strict-dynamic' https: http:;
  19. report-uri http://localhost:8080/csp-collector
Add Comment
Please, Sign In to add comment