简体   繁体   English

TestCafe + VPN不能在没有斜杠的情况下打开链接

[英]TestCafe + VPN can't open links without trailing slash

Connection to our website is through VPN. 通过VPN连接到我们的网站。 When we try to use .navigateTo(' https://mainwebsite.net/app1 ') TestCafe will not load that page, it will be infinite loading. 当我们尝试使用.navigateTo(' https://mainwebsite.net/app1 ')时,TestCafe将不会加载该页面,它将是无限加载。 But if we add / at the end of that url .navigateTo(' https://mainwebsite.net/app1/ ') it will work. 但是,如果我们在该URL .navigateTo(' https://mainwebsite.net/app1/ ')的末尾添加/,它将起作用。 Same issue when clicking links. 单击链接时出现相同的问题。 Tried on multiple machines, browsers and testcafe versions, still same issue. 在多台机器,浏览器和testcafe版本上尝试过,仍然是同样的问题。 Where could be the problem? 问题可能出在哪里?

Also to note, when using normal browser(not running testcafe) on VPN it works fine with or without trailing slash 还要注意,在VPN上使用普通浏览器(不运行testcafe)时,无论是否带有斜杠,它都可以正常工作

According to your comment , this situation is not a TestCafe problem. 根据您的评论 ,这种情况不是TestCafe问题。 Just need to find the problematic url-rewrite rule and fix it. 只需找到有问题的url重写规则并修复它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM