[RESOLVED]insecure history api

In Firebug when Im trying to go to the next site:
SecurityError: The operation is insecure.

window.history.pushState(null, null, url)

What is the value of ‘url’? You can only use pushstate on the same domain so if you’re trying to add a different domain you’ll get an error.

url is sub-domain address which I load with ajax after pushstate. How can I realize pushstate best way?

You can’t use pushstate  with a subdomain.

Hi Alex9,

For your issue ,it is related with IE, I suggest that you can post your issue to the link below:

https://social.msdn.microsoft.com/Forums/en-US/home?forum=iewebdevelopment

Best Regards,

Kevin Shen.

Leave a Reply