Hacker News new | past | comments | ask | show | jobs | submit login

I'm going to start using this as an endpoint for stats checks on my own stuff to see if Facebook employees are visiting my site.



The same origin policy in browsers will stop you from doing that.


Can't you use a JSONP request?


JSONP is a way to consume a feed from a willing website on a different domain name. I say "willing" because the feed must be presented in JSONP -- there is no way for you to alter a JSON feed into a JSONP feed without using some sort of proxy.

Because you'd need to use a proxy on your domain to convert the feed to JSONP, you would then lose access to the client's cookies for the target domain. That basically means that no, you can't use a JSONP request to defeat the same-origin policy.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: