如何通过iFrame实现它?

问题描述 投票:-3回答:1

我有一种情况,当我应该发送POST请求来验证用户,如果它成功,那么服务器设置一个cookie然后我们可以得到一个受保护的页面:

  1. 邮递员的首次要求:

enter image description here

  1. 第二次请求(首先):

enter image description here

我需要在网页上实现它。据我所知,现在只能通过框架。怎么做?第一个请求应在打开页面后自动发送,因此,用户应打开该页面并查看受保护的页面。

html authentication web iframe
1个回答
-1
投票

您正在尝试实现Cookie身份验证吗?这里有一些链接可以帮助您。 https://dzone.com/articles/cookie-authentication-with-aspnet-core-20

© www.soinside.com 2019 - 2024. All rights reserved.