• DannyBoy@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 days ago

    So you might be wondering, hey, how did you make a javascript applet ping these arbitrary servers? What about cross-domain request protection?

    Answer: I did it by just making the queries anyway, and seeing how long it takes to get the error message back that my request was refused because of cross-domain request protection. Yes, this results in an infinite number of error messages to your javascript console. Don’t look at your javascript console and you’ll be fine. Trust me on this.

    Absolutely genius programming technique.