iframe-subresource-report.html (468B)
1 <!DOCTYPE html> 2 <head> 3 <script src="/cookies/resources/cookie-helper.sub.js"></script> 4 <script> 5 function reportSubresourceCookies() { 6 credFetch(SECURE_ORIGIN + "/cookies/resources/list.py") 7 .then(r => r.json()) 8 .then(cookies => { cookies.type = "COOKIES"; 9 target = window.opener ? window.opener : window.parent; 10 target.postMessage(cookies, "*");}); 11 } 12 </script> 13 </head> 14 <body onload="reportSubresourceCookies()">