Skip to content

Commit

Permalink
Update navigations.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NDevTK authored Apr 23, 2024
1 parent d0d12dd commit 647ed32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/docs/attacks/navigations.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ The following snippet can be used to detect whether such a navigation has occurr
var url = 'https://example.org/';
// Create an outer iframe to measure onload event
var iframe = document.createElement('iframe');
// Don't actually download the file to be stealthy
iframe.sandbox = 'allow-scripts allow-same-origin';
document.body.appendChild(iframe);
// Create an inner iframe to test for the download attempt
iframe.srcdoc = `<iframe src="${url}" ></iframe>`;
Expand Down

0 comments on commit 647ed32

Please sign in to comment.