SecurityError: The operation is insecure - window.history.pushState()

前端 未结 9 1991
我寻月下人不归
我寻月下人不归 2020-11-28 08:56

I\'m getting this error in Firefox\'s Console: SecurityError: The operation is insecure and the guilty is HTML5 feature: window.history.pushState()

相关标签:
9条回答
  • 2020-11-28 09:47

    You should try not open the file with a folder-explorer method (i.e. file://), but open that file from http:// (i.e. http://yoursite.com/ from http://localhost/)

    0 讨论(0)
  • 2020-11-28 09:51

    We experienced the SecurityError: The operation is insecure when a user disabled their cookies prior to visiting our site, any subsequent XHR requests trying to use the session would obviously fail and cause this error.

    0 讨论(0)
  • 2020-11-28 09:54

    I had this problem on ReactJS history push, turned out i was trying to open //link (with double slashes)

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