Skip to content

Commit

Permalink
commented window.log in index file
Browse files Browse the repository at this point in the history
Parth Kothari committed May 29, 2024
1 parent e98187f commit 338eec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
// var baseTag = document.createElement('base');
// baseTag.href = document.location.href;
// document.head.appendChild(baseTag);
window.console.log = function() {}
// window.console.log = function() {}
document.write('<base href="' + document.location + '" />');

Check failure

Code scanning / CodeQL

Client-side cross-site scripting High

Cross-site scripting vulnerability due to
user-provided value
.
window.console.warn = function() {}
</script>

0 comments on commit 338eec8

Please sign in to comment.