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

前端 未结 9 2090
我寻月下人不归
我寻月下人不归 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:38

    I had the same problem when called another javascript file from a file without putting javascript "physical" address. I solved it by calling it same way from the html, example: "JS / archivo.js" instead of "archivo.js"

提交回复
热议问题