【发布时间】:2018-09-12 07:23:15
【问题描述】:
我在所有浏览器中都面临这个问题。每当我尝试在 Google 缓存中查看我的网站时,就会出现这种情况
main.bundle.js:1 ERROR Error: Uncaught (in promise): SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'https://mydomainn.com/' cannot be created in a document with origin 'http://webcache.googleusercontent.com'。快递谷歌也存在同样的问题。 http://webcache.googleusercontent.com/search?q=cache%3Ahttps%3A%2F%2Fexpress.google.com%2Fstores&oq=cache%3Ahttps%3A%2F%2Fexpress.google.com%2Fstores&aqs=chrome..69i57j69i58.3999j0j4&sourceid=chrome&ie=UTF-8。
我的基本href是/
【问题讨论】:
-
嗨,你的问题解决了吗?
标签: angular universal server-side-rendering