简体   繁体   English

Browsersync + Gulp.js + XMLHttpRequest无法加载

[英]Browsersync + Gulp.js + XMLHttpRequest cannot load

I have the most simple job in gulp, basically copy-pasted from Browsersync website. 我有一个最简单的工作,基本上是从Browsersync网站复制粘贴的。 However the page doesn't refresh upon saving and following error appears in chrome console: 但是,页面在保存时不会刷新,并且Chrome控制台中出现以下错误:

在此处输入图片说明

(The count goes up all the time...) I couldn't find anywhere anything about this error on Browsersync I tried to use Allow-Control-Allow-Origin plugin for chrome or start Chrome without security settings, but the error remained. (计数一直在增加...)我在Browsersync上找不到任何有关此错误的信息,我尝试将Allow-Control-Allow-Origin插件用于chrome或在没有安全设置的情况下启动Chrome,但该错误仍然存​​在。 I am using Windows 10, node - 5.5.0 and npm 3.8.8. 我正在使用Windows 10,节点-5.5.0和npm 3.8.8。

I think I should delete this question, however If anybody will get to the same error as I did... Note: disable your adblocker. 我想我应该删除这个问题,但是,如果有人会遇到和我一样的错误...注意:禁用您的adblocker。 I though I disabled it for all localhosts. 我虽然为所有本地主机禁用了它。 Seems like for Browsersync's localhost I had to disable it again... 似乎对于Browsersync的本地主机,我不得不再次将其禁用...

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

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