DEV Community

Discussion on: I tried to mount a client-side "attack" on a news website poll by using only Javascript. And I failed miserably.

Collapse
ispoljari profile image
Ivan Spoljaric Author • Edited

I love this approach.
It's doing the same thing I wanted in essence, but without the hassle with iframes. Much cleaner and streamlined.

CORS might be an issue though.. The iframe has it's own origin. And the server is configured to accept requests to /poll from within it. I think calling this endpoint from the console, or a bookmarklet, won't work because of this reason.

I will try it out anyway. Thx :)