Html5 Api history - pushState from domain to subdomain

I have a website as a landing page and information for a type of web portal.

I need a link that goes to the portal in order to set up an animation that beautifully switches to viewing the portal (navigation slides, new navigation slides, various widgets disappear, new ones disappear, etc.).

However, I also need a URL from www.mydomain.com to portal.mydomain.com .

I am ready to go any length to have BOTH, animation for loading the portal, and the URL is a subdomain.

Be that as it may, I understand that this will violate the security policy and will not be allowed, but there is no way to achieve a smooth transition to the portal if a reboot is required.

Is there anything that can be done? It is possible to somehow establish an explicit trust between the two domains.

+8
html5 browser-history
source share
1 answer

It's impossible. This is by design. There are no exceptions.

From the Mozilla pushState Documentation :

The new URL must have the same source as the current URL; otherwise , pushState () throws an exception.

+5
source share

All Articles