gpt4 book ai didi

asp.net-mvc - BotDetect CAPTCHA 在 https 中不起作用

转载 作者:太空宇宙 更新时间:2023-11-03 14:43:27 24 4
gpt4 key购买 nike

我已将验证码 (BotDetect CAPTCHA) 添加到我的 asp.net MVC 表单中。但它在 http 站点中工作正常,但在 https 中不工作。

我遵循了以下文档。

https://captcha.com/doc/aspnet/asp.net-mvc-captcha-quickstart.html

这是我的 http 站点。 enter image description here

但是在 https 中;

enter image description here

这些是我在浏览器控制台中得到的错误。

/BotDetectCaptcha.ashx?get=script-include 404 (Not Found)
/BotDetectCaptcha.ashx?get=layout-stylesheet 404 (Not Found)
Uncaught ReferenceError: BotDetect is not defined
/BotDetectCaptcha.ashx?get=image&c=ExampleCaptcha&t=be41dfc9b19b449f98fdd794a00e1cfa 404 (Not Found)
/BotDetectCaptcha.ashx?get=reload-icon 404 (Not Found)
/BotDetectCaptcha.ashx?get=sound-icon 404 (Not Found)

最佳答案

我发现了问题。我在 web.config 中错过了下面的内容(在 Live 中)。

<remove name="BotDetectCaptchaHandler" />
<add name="BotDetectCaptchaHandler" preCondition="integratedMode" verb="GET" path="BotDetectCaptcha.ashx" type="BotDetect.Web.CaptchaHandler, BotDetect" />

关于asp.net-mvc - BotDetect CAPTCHA 在 https 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41223454/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com