koopjs / FeatureServer

An open source Geoservices Implementation (deprecated)
https://geoservices.github.io
Other
104 stars 32 forks source link

Wrong Content-Type when "callback" query string param is used #87

Closed bob-gray closed 6 years ago

bob-gray commented 6 years ago

When the JSON is wrapped in a callback (JSONP) the content type should be application/javascript

It is now being sent as text/html which doesn't work when the server also returns X-Content-Type-Options: nosniff. (At least not in Chrome)