The Google App Engine server is returning a JSON String in response to a POST:
self.response.headers.add_header("Content-Type", "application/json")
return self.response.out.write(json_string)
This works on my local development server running in the Google App Engine Launcher. The header is being set, and the jQuery code is parsing the response correctly.
However, in production, on the Google Frontend (when I deploy to production), the page is breaking because jQuery is not parsing the response correctly. The ONLY difference I can find between local and production (they are running the same code) is that the response on production, is ignoring my attempt to set the Content-Type to "application/json".
So that probably means I'm trying to set an illegal/non-standard Content-Type. BUT, it works locally, and that is how I got my jQuery to understand the JSON String.
So, how do I format the response so that jQuery will know it's JSON and parse correctly?