AnsweredAssumed Answered

Cannot execute JS query.where statement - mime type error?

Question asked by MollyKFoley on Jul 6, 2017
Latest reply on Jul 7, 2017 by MollyKFoley

I'm trying to update a web app we have and when I change the query.where statement to acquire more states, I get a mime type error in the development tool consoles of multiple browsers.

 

This is the current query.where statement and it renders the map just fine:

query.where = "STATE_ABBR = 'GA' OR STATE_ABBR = 'IA' OR STATE_ABBR = 'KY'"

 

I'd like to add more states to the where statement like so:

query.where = "STATE_ABBR = 'GA' OR STATE_ABBR = 'IA' OR STATE_ABBR = 'KY' OR STATE_ABBR = 'MO'"

Unforunately, when I change this in notepad ++, save the new html file, and refresh in the browser to the see the results, I get this error in the development tool console:

"Refused to execute script from <myURLhere> because its MIME type (text/plain) is not executable, and strict MIME type checking is enabled."

 

I'm very unclear as to why the current map renders fine, but if I change the query it breaks. I don't know what MIME types are or how to fix such an issue. Insight would be appreciated.

Outcomes