我可以在哪里找到gm_xmlhttprequest xhr控制台日志
我在Firefox中的Tampermonkey上运行了一些用户标记(Chrome具有相同的行为),
这些请求的XHR日志没有出现在控制台或网络分析中。
因为这是HTTP到HTTP服务的CORS请求,所以我们必须使用gm_xmlhttprequest()
,并且不能使用fetch(fetch> fetch()
xmlhtttprequest
请求报告有时会出现错误,有时没有错误,因此该信息将非常有帮助解决我们的问题。 我的问题是,我可以在哪里找到这些日志,还是该如何打开它?
I have a little userscript running on Tampermonkey in Firefox (chrome has the same behavior)
The xhr logs of these requests doesn't appear in the console or network analysis.
Because it is a cors request from https to a http service, we have to use GM_xmlhttpRequest()
and cannot use fetch()
or normal XmlHttpRequest
The request report sometimes an error and sometimes not, so the information would be very helpful to solve our issue.
My question is, where I can find these logs, or how can I turn it on?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
GM_XMLHTTPREQUEST()
通常是从用户参考管理器的背景脚本运行的。如以下主题所述,您可以打开相对控制台并选中“网络”选项卡。
GM_xmlhttpRequest()
is usually run from the background script of the userscript manager.As mentioned in the following topic, you can open the relative console and check the Network tab.