Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.JS file can't be loaded in firefox : MIME 类型不匹配(X-Content-Type-Options: nosniff) #1340

Closed
2 of 10 tasks
jimmydong opened this issue Mar 21, 2017 · 1 comment
Closed
2 of 10 tasks

Comments

@jimmydong
Copy link

jimmydong commented Mar 21, 2017

Issue details

来自 “http://test.iyishengyuan.com:3080/yejs/lib/require.js” 的资源已被阻止,因为 MIME 类型不匹配(X-Content-Type-Options: nosniff)

Steps to reproduce/test case

index.html:

<script src="yejs/lib/require.js" charset="utf-8" type="text/javascript"></script>

with firefox 52.01.1 , in devtools -> network -> header :
require.js ---- Content-Type: text/html; charset=utf-8

Please specify which version of Browsersync, node and npm you're running

  • Browsersync [ 2.17.5 ]
  • Node [ 6.4.0 ]
  • Npm [ 3.10.3 ]

Affected platforms

  • linux
  • windows
  • OS X
  • freebsd
  • solaris
  • other (please specify which)

Browsersync use-case

  • API
  • Gulp
  • Grunt
  • CLI

for all other use-cases, (gulp, grunt etc), please show us exactly how you're using Browsersync

gulp.task('server', function() {
browserSync.init({
server: {
baseDir: "./dist/",
index: "index.html",
directory: true
},
ui: false,
ghostMode: false,
logLevel: "debug",
host: '0.0.0.0',
port: 3080,
open: false
});
gulp.watch("src/**/.scss", ['scss-build']);
gulp.watch("dist/
.html").on('change', reload);
});

@jimmydong
Copy link
Author

Sorry, I made a mistake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant