I meant you need to control the poisoned DNS
If I use 8.8.8.8 as DNS you can only work on the domains you already control, which is kinda useless
> You don't need access-control headers, because you stay on the same domain.
No, you don't
My localhost server only respond to localhost and 127.0.0.1 host header
Not to mypage.com
Nginx does taht too by default
https://github.com/nginx/nginx/blob/master/conf/nginx.conf#L...
But even if you did, you still haven't resolved the issue: you can't make a call to a different domain without access-control headers, unless it's the same domain
you can't load mypage.com and then fetch from www.mypage.com, even if you resolve www.mypage.com to 127.0.0.1 the browser won't let you do it