AWS放大忽略查询字符串

发布于 2025-01-23 14:40:57 字数 1172 浏览 0 评论 0 原文

我正在AWS Amplify上运行一个React应用程序,并且当密码链接(带有查询字符串)从电子邮件中单击 https://www.domain.co.uk/

它刚刚返回到主页。我怀疑这与第二条规则有关。如果我将其直接访问到URL浏览器中,则可以使用: https://www.domain.co.uk/

[
    {
        "source": "https://domain.co.uk",
        "target": "https://www.domain.co.uk",
        "status": "302",
        "condition": null
    },

    {
        "source": "/<*>",
        "target": "/index.html",
        "status": "404-200",
        "condition": null
    },
    {
        "source": "</^[^.]+$|\\.(?!(css|gif|ico|jpg|js|png|txt|svg|woff|ttf|map|json)$)([^.]+$)/>",
        "target": "/index.html",
        "status": "200",
        "condition": null
    }
]

-cfemail =

I am running a React app on AWS amplify and when the password link (with query string) is clicked from the email in the format of https://www.domain.co.uk/[email protected]&token=5p0-2ce1c23665f782e62cw69

it is just returned back to the homepage. I suspect it is something to do with the second rule. If I access this directly into the URL browser, it works: https://www.domain.co.uk/[email protected]&token=5p0-2ce1c23665f782e62cw69

[
    {
        "source": "https://domain.co.uk",
        "target": "https://www.domain.co.uk",
        "status": "302",
        "condition": null
    },

    {
        "source": "/<*>",
        "target": "/index.html",
        "status": "404-200",
        "condition": null
    },
    {
        "source": "</^[^.]+$|\\.(?!(css|gif|ico|jpg|js|png|txt|svg|woff|ttf|map|json)$)([^.]+$)/>",
        "target": "/index.html",
        "status": "200",
        "condition": null
    }
]

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

抱着落日 2025-01-30 14:40:57

我在这里有同样的问题,在阅读此 post 之后,我解决了。将www添加到您的域中,示例:

https://yourdomain.com

to

https://www.yourdomain.com

感谢用户 https://github.com/devpowers

i have same problem here and i solve after read this post. Add www to your domain, example:

https://yourdomain.com

to

https://www.yourdomain.com

Thanks to user https://github.com/DevPowers

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文