我想在我的Angular7代码中使用刷新token功能,试了很多,无法用现有的解决方案来解决。
<html>
<body>
<script>
parent.postMessage(location.hash, location.origin);
</script>
</body>
</html>
错误。Uncaught (in promise): Error: Cannot match any routes: 无法匹配任何路由。URL Segment: 'silent-refresh.html' Error: Cannot match any routes: 无法匹配任何路由。URL段:'silent-refresh.html' at
放在项目中的Silent-refresh路径(angular.json) "assets": [
"src/favicon.ico",
"src/assets",
"src/silent-refresh.html"
],
自动调用刷新令牌的代码 this.oauthService.setupAutomaticSilentRefresh()