错误将此消息发送到您的机器人:禁止使用HTTP状态代码。 Azure Portal并在Web应用程序机器人服务中获得不信任的域问题
我在部署代码后在Web聊天频道中的错误(IMG:1)下降,直到最后一周都可以正常工作,但突然在Web App Bot Service浏览器控制台中获得了不信任的Origin错误,并且无法连接到Bot使用“网络聊天中的测试”功能。我已经附加了下面的不信任的原点错误屏幕截图(IMG:2)。我将.bot文件用作使用开发和生产的管理资源(Micorsoft Appid,App Paswword,端点)。我尝试将.bot文件迁移到AppSettings((MicorSoft Appid,App paswword,端点)作为管理资源,但仍会遇到相同的错误。请帮助解决该错误的分辨率。IMG
Im getting below error(Img:1) in Web Chat channel after deploying the code, upto lastweek it is working fine but suddenly im getting the untrusted Origin error in browser console of Web App bot service and couldn't able to connect to the bot using "Test in Web Chat" feature. I have attached the Untrusted Origin error screen shot(Img:2) below. I am using .bot file as managing resource with Development and Production( Micorsoft AppId , App paswword, endpoint). I tried migrating .bot file to Appsettings(( Micorsoft AppId , App paswword, endpoint) as the managing resource but still getting the same error. Please help with the resolution for the error.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是一些资源需要检查。
请检查以下几点:
替代选项:
有关类似问题的参考,请通过以下链接:
有一个错误,将此消息发送到您的bot-网络聊天中的测试
Here are the some of the resources need to check.
Kindly check the below points:
Alternate Options:
For reference on similar issue kindly go through the below link:
There was an error sending this message to your bot - Test in Web Chat
我相信您在直线渠道中启用了增强身份验证,并且没有域设置为可信的来源。
< -Service-4.0#Security-Consississ“ RER =“ Nofollow Noreferrer”> https://learn.microsoft.com/en-us/azure/bot-service/bot-service/rest-rest-rest-api/bot-framework-framework-ramework-ramework-rest-direct-direct-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-line-ine 3-0授权?view = azure-bot-service-4.0#security-considestions
I believe you have Enhanced Authentication enabled in the Directline channel and don't have the domain setup as a trusted origin.
https://learn.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-direct-line-3-0-authentication?view=azure-bot-service-4.0#security-considerations