1<!DOCTYPE html> 2<html> 3 <head> 4 <title>This page reports back it's request details to the parent frame</title> 5 </head> 6 <body> 7 <script> 8 var result = { 9 location: document.location.toString(), 10 referrer: document.referrer.length > 0 ? document.referrer : undefined, 11 headers: %(headers)s 12 }; 13 parent.postMessage(result, "*"); 14 </script> 15 </body> 16</html> 17