HTLM5 WebSocket权威指南

2015-9-16 11:24:54

同源:同种协议,同一个主机,同一个端口才是同源。

http和https是两种协议;

www.example.com和example.com是两个主机;

:8080和:8081是两个端口。

都不是同源消息。

原文地址:https://www.cnblogs.com/lswit/p/4812766.html