如何通过iFrame实施它? [英] How to implement it via iFrame?
问题描述
我遇到一种情况,当我应该发送POST请求以验证用户身份时,如果成功,则服务器设置cookie,然后我们可以获得受保护的页面:
I have a situation, when I should to send a POST request to authenticate user, if it's succeed then server set a cookie and then we can get a protected page:
- 邮递员的第一个请求:
- 第二个请求(在第一个之后):
我需要在网页上实现它.据我了解,这只能通过框架实现.怎么做?打开页面后应自动发送第一个请求,因此,用户应打开页面并查看受保护的页面.
I need to implement it on web page. As I understand now, it's possible only via frames. How to do it? First request should be sent automatically after opening a page, so, user should open the page and see a protected page.
推荐答案
您要尝试实现Cookie身份验证吗?以下是一些可以帮助您的链接. https://dzone.com/articles/cookie-authentication-with- aspnet-core-20
Cookie Authentication is you are trying to achieve?, here is are some links which will help to you with that. https://dzone.com/articles/cookie-authentication-with-aspnet-core-20
这篇关于如何通过iFrame实施它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!