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的新手,我已经在我们的生产网站上做了几次测试,它工作得很好。然而,现在当我试图在cloudfare背后的测试环境上访问我们的应用程序时,我无法通过。我读到我应该在头中发送上述两个值。有人知道我如何在TestCafe中做到这一点吗?如果我遗漏了任何信息,一定要让我知道。提前感谢您:)
发布于 2020-05-04 14:29:36
此问题在没有TestCafe的情况下重现。
用户使用Custom HTTP Request Hook解决了这个问题。
https://stackoverflow.com/questions/61499719
复制相似问题