Adding a warning regarding the "controlled" XSS in iframe.html
This commit is contained in:
parent
7f79c2dc4a
commit
303d2a7837
@ -1,12 +1,11 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
||||
<script>
|
||||
var script = document.createElement('script');
|
||||
// Don't do this at home kids! The "document.referrer" part is actually inserting a XSS security.
|
||||
// We are OK in this precise case because the HTML page is hosted on the "maps" domain that contains only static files.
|
||||
script.setAttribute('src', document.referrer + 'iframe_api.js');
|
||||
script.defer = false;
|
||||
script.async = false;
|
||||
document.head.appendChild(script);
|
||||
</script>
|
||||
</head>
|
||||
|
Loading…
Reference in New Issue
Block a user