简体   繁体   English

Chrome浏览器阻止了特定域的console.log消息

[英]Chrome is blocking console.log messages for a specific domain

The title pretty much says it all. 标题基本概括了所有内容。 I uploaded this HTML file to 2 domains: 我将此HTML文件上传到2个域:

<script type="text/javascript">
console.log('test');
alert('test');
</script>

On both domains, I get the alert that pops up. 在两个域上,我都会弹出警报。 But on 1 domain, the console message is never logged. 但是在1个域上,控制台消息永远不会记录。 I tried on different computers. 我在其他计算机上尝试过。

I did this test because as I was working I noticed my messages were no longer coming in. After trying every setting in Chrome, I finally uninstalled Chrome and re-installed but the problem persisted. 我进行此测试是因为在工作时,我注意到我的消息不再来了。在Chrome中尝试了所有设置之后,我终于卸载了Chrome,然后重新安装,但问题仍然存在。 Finally, I changed computers and the problem persists on this computer. 最后,我更换了计算机,问题仍然存在于此计算机上。

I can't imagine what the problem is. 我无法想象问题是什么。 It can't be anything in HTML file (as the file is as simple as it gets) and I tried on 2 systems soooo... is my domain somehow blocked somewhere? HTML文件中不能包含任何内容(因为该文件非常简单),因此我在2个系统上进行了尝试...我的域在某种程度上被阻止了吗? Has anyone ever heard of an issue like this? 有人听说过这样的问题吗?

Is this happening? 这是发生了吗?

Click “All” on the bottom toolbar. 单击底部工具栏上的“全部”。 Currently it is showing errors only. 目前,它仅显示错误。

Similar Question, this may help you 类似的问题,这可能对您有帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM