Bladeren bron

Update oauth_access_confirmation.ftl

支持iframe应用在框架内跳转
realwds 3 maanden geleden
bovenliggende
commit
f638ef713c

+ 1 - 1
maxkey-webs/maxkey-web-maxkey/src/main/resources/templates/views/authorize/oauth_access_confirmation.ftl

@@ -3,7 +3,7 @@
 <head>
 	<#include  "authorize_common.ftl">
 	<script type="text/javascript">
-	   window.top.location.href = "${model.authorizeApproveUri}?oauth_approval=${model.oauth_approval}&clientId=${model.client.clientId!}";
+	   self.location.href = "${model.authorizeApproveUri}?oauth_approval=${model.oauth_approval}&clientId=${model.client.clientId!}";
 	</script>
 </head>