eggbertx
eggbertx

Reputation: 513

Would requesting a page from a subdomain via AJAX work?

I'm writing a userscript to be run on youtube video pages. It needs to make requests to gdata.youtube.com using jQuery to make things easier. Would this work or does it violate the cross-domain policy?

Upvotes: 1

Views: 91

Answers (1)

CoreyRS
CoreyRS

Reputation: 2267

it violates the cross-domain policy because you're not hosting it on youtube.com, so domain or subdomain, its still not the domain the script is located on so it wont work.

Upvotes: 1

Related Questions