What is cross domain???


What is cross domain?

When a request URL   Protocol, domain name, port between any of the three different from the current page URL is cross domain.

Current page URL         Requested page URL         Cross domain             reason
http://www.test.com/      http://www.test.com/index.html       no Same origin (same protocol, domain name and port number)
http://www.test.com/      https://www.test.com/index.html Cross domain Different protocols (HTTP / HTTPS)
http://www.test.com/      http://www.baidu.com/         Cross domain                     Main domain name is different (test / Baidu)
http://www.test.com/      http://blog.test.com/          Cross domain                     Different subdomains (WWW / blog)
http://www.test.com :8080/     http://www.test.com :7001/        Cross domain                     Different port numbers (8080 / 7001)

Recommended Today

Looking for frustration 1.0

I believe you have a basic understanding of trust in yesterday’s article. Today we will give a complete introduction to trust. Why choose rust It’s a language that gives everyone the ability to build reliable and efficient software. You can’t write unsafe code here (unsafe block is not in the scope of discussion). Most of […]