3

这是我在 HTML 上发现的最奇怪的问题,老实说,我不知道从哪里开始。任何想法都会非常有帮助,因为我堆积如山,我不知道还要寻找什么。

申请说明

在我的公司,我们构建了一个项目,它由应用程序管理仪表板和客户的前端部分组成。

当用户在我们的应用程序中注册时,我们会向他的帐户发送一封带有自动登录按钮的电子邮件。

然后在应用程序管理中,我们为每个用户帐户提供一个按钮,该按钮生成与按钮完全相同的链接,以允许应用程序管理员通过复制和粘贴生成的链接来访问前端的用户帐户。

问题

无论是从管理仪表板还是从用户电子邮件正文中的链接复制并粘贴自动登录 URL,我们都可以毫无问题地自动登录。

如果我们单击电子邮件正文中的链接,则自动登录 URL 不起作用。(不工作,我们的意思是用户登录了,但是有些作为用户的页面没有登录,而另一些作为用户的页面已经登录了。同时,如果我们执行浏览器刷新,用户再次正常登录。)

在电子邮件正文中的同一链接中,如果我们执行右键单击 -> 在新选项卡中打开链接,该链接将正常工作。用户正在自动登录,所有操作都在正常工作。

日志

对于这两种情况(单击、右键单击或复制粘贴),我们的系统不会在任何日志记录端(控制台和浏览器控制台)中记录任何错误

到目前为止我们所做的尝试

我们已将链接复制到一个平面空index.html文件中,该文件仅带有两个这样的链接:

Double Quoted Attributes:
<br>
<a href="https://u3067134.ct.sendgrid.net/ls/click?upn=......" target="_blank">
    Link Button As It Appears In the Email Body
</a>
<a href="http://our-app.tld?Authorization=......" target="_blank">
    The resolved Application URL After the SendGrid redirection
</a>
<br>
Single Quoted Attributes:
<br>
<a href='https://u3067134.ct.sendgrid.net/ls/click?upn=......' target="_blank">
    Link Button As It Appears In the Email Body
</a>
<a href='https://our-app.tld?Authorization=......' target="_blank">
    The resolved Application URL After the SendGrid redirection
</a>
<br>
Double Quoted Attributes with Encoded URL Parameters:
<br>
<a href="https://u3067134.ct.sendgrid.net/ls/click?upn=URL_ENCODED_PARAMETERS_HERE" target="_blank">
    Link Button As It Appears In the Email Body
</a>
<a href="https://our-app.tld?Authorization=URL_ENCODED_PARAMETERS_HERE" target="_blank">
    The resolved Application URL After the SendGrid redirection
</a>
<br>
Single Quoted Attributes with Encoded URL Parameters:
<br>
<a href='https://u3067134.ct.sendgrid.net/ls/click?upn=URL_ENCODED_PARAMETERS_HERE' target="_blank">
    Link Button As It Appears In the Email Body
</a>
<a href='https://our-app.tld?Authorization=URL_ENCODED_PARAMETERS_HERE' target="_blank">
    The resolved Application URL After the SendGrid redirection
</a>

但同样,这些链接不能通过点击来工作。同时,其他两种方法都使用完全相同的链接(右键单击 -> 在新选项卡中打开,或将链接复制粘贴到新的浏览器选项卡中)

请问您知道这种情况可能有什么问题吗?

4

0 回答 0