簡體   English   中英

如何將用戶登錄到外部頁面並將用戶重定向到那里?

[英]How to login the user to an external page and redirect the user there?

我目前正在嘗試找到一種將用戶重定向到外部受保護頁面的方法,例如 foo.com/dashboard。 我有頁面的用戶登錄憑據和身份驗證 cookie。 所以我的問題是,我如何將用戶重定向到已經登錄的頁面,這樣用戶就不必登錄了,我登錄了嗎? 我將不得不在請求中添加一個 Cookie header,但 html 不可能。

你的意思是...?

window.location = './another-location/index.html';

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM