Skip to content Skip to sidebar Skip to footer

Chrome Extension Error When Returning Json: Resource Interpreted As Script But Transferred With Mime Type Text/json

I am making a chrome extension that uses http://loopj.com/jquery-tokeninput/ to add tokens. $(function() { $('#token').tokenInput('http://localhost/token/search', { preventDu

Solution 1:

Should be text/javascript content type:

header('content-type:text/javascript');

Post a Comment for "Chrome Extension Error When Returning Json: Resource Interpreted As Script But Transferred With Mime Type Text/json"