Testcafe和cloudflare

问题描述 投票:0回答:1
Cloudflare Access expects both values as headers in the request sent to the application. Name them as follows:

CF-Access-Client-Id: <Client ID>
CF-Access-Client-Secret: <Client Secret>
https://developers.cloudflare.com/access/service-auth/service-token/

我是TestCafe的新手,我已经在我们的生产网站上做了几次测试,效果不错。但是,现在当我尝试在测试环境中访问我们的应用程序时,我无法通过。我读到我应该在头文件中发送上述两个值。有谁知道我如何在TestCafe中做到这一点?如果我遗漏了任何信息,请告诉我。先谢谢你:)

testing automation automated-tests e2e-testing testcafe
1个回答
1
投票

该问题在没有TestCafe的情况下进行了转载。

用户使用该问题的解决方法是 自定义HTTP请求钩子.

© www.soinside.com 2019 - 2024. All rights reserved.