I want to access the resources of
http://abc.example.com
on
http://example.com.
Is this a violation of the Same origin policy?
I am not able to test it because I am designing something and do not have server access to validate the same.
I want to access the resources of
http://abc.example.com
on
http://example.com.
Is this a violation of the Same origin policy?
I am not able to test it because I am designing something and do not have server access to validate the same.
Even though you dont have server access, you can still test this. Set up a simple webserver on your laptop and modify your hosts file. Next lookup the definition of origin: Port, protocol and full hostname. Same origin policy be relaxed by setting document.domain on subdomain or using CORS headers.