Dart program refusing to execute because of MIME type checking? -
i've been trying install our client.dart web program our server, referenced index.html file, , has been working fine locally.
there have been number of issues have found way around, 1 has me stumped. note: client application using polymer , has http code in it. uses websockets.
the exact message i'm getting is:
refused execute script 'http://swarmshepherd.com:9494/client.dart' because mime type ('application/octet-stream') not executable, , strict mime type checking enabled.
there "header" (http) of: , "x-content-type-options=nosniff" seems related problem. nothing has made sense me has worked yet.
longer term must able run in chrome, message happening in dartium.
the message found in developertools/js monitor - , first , message i'm getting.
(i thought there might chomium/dartium option turn off strict checking nothing shows anywhere, , have tried can think of in header section of http code (which iffy , frustrating because can no idea code how might used!)
thanks in advance clues!
_george
if you're using sinatra (i'm guessing, based on comments), can register custom mime types:
configure mime_type :dart, 'application/dart' end
if you're using iis, need add mime types
section in iis configuration.
other webservers should have similar configuration options.
Comments
Post a Comment