Html5 History Api - pushState from a domain to a subdomain

后端 未结 1 1665
执笔经年
执笔经年 2020-12-10 13:30

I have a website as the landing and information page to a web portal type of application.

I need the link that goes to the portal to set off an animation that beauti

相关标签:
1条回答
  • 2020-12-10 14:18

    It can't be done. This is by design. There are no exceptions.

    From the Mozilla pushState documentation:

    The new URL must be of the same origin as the current URL; otherwise, pushState() will throw an exception.

    0 讨论(0)
提交回复
热议问题