This is a security constraint that prevents requests from one source to another.
For example, this will prevent the page from getting https://to the address http://because the protocol is different.
It will stop the example.comcall another.combecause it is a different domain.
It will stop the www.example.comcall subdomain.example.combecause it is a different subdomain.
And he will stop the example.com:80call example.com:8080because it is a different port.
- JSONP ( !), CORS ( Cross-Origin), , ( ).