Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #25670

Re: Override mimetype when loading javascript dynamically?

From Andreas Bergmaier <andber93@web.de>
Newsgroups comp.lang.javascript
Subject Re: Override mimetype when loading javascript dynamically?
Date 2014-08-10 22:44 +0200
Organization albasani.net
Message-ID <ls8lir$al7$1@news.albasani.net> (permalink)
References <b8d21a27-0014-4054-886e-44157421f3d5@googlegroups.com>

Show all headers | View raw


[Someone] schrieb:

> Unfortunately the server (which is outside my control) hosting the src is sending the script as MIME type "text/html" instead of "application/javascript" causing Chrome to fail with this message "Resource interpreted as Script but transferred with MIME type text/html:".

That's not a fail, that's a mere *warning* that the server is configured 
wrongly. As the message states, the script is still interpreted.

> Is it possible on the client side to convince Chrome that it should consider it "application/javascript"?

No. Make someone fix the server.

Regards,
  Bergi

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Override mimetype when loading javascript dynamically? Me Self <wmsopou@gmail.com> - 2014-08-09 06:43 -0700
  Re: Override mimetype when loading javascript dynamically? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-08-09 16:11 +0200
  Re: Override mimetype when loading javascript dynamically? Andreas Bergmaier <andber93@web.de> - 2014-08-10 22:44 +0200
  Re: Override mimetype when loading javascript dynamically? Denis McMahon <denismfmcmahon@gmail.com> - 2014-08-10 21:57 +0000

csiph-web