javascript - Does postMessage's origin include www? -


if postmessage used website uses www, included in origin?

for example, if postmessage sent http://www.example.com, origin example . com or www . example . com?

similarly, if wanted send postmessage http:// www . example . com, send http:// example . com or http:// www . example. com?

yes, origin consists of whole scheme , authority, containing complete host name , port. include www domain part.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -