Accepted answer

You are returning JSON (with a plain text content-type), not JSON-P.

You need to look at the value of callback in the query string and wrap the JSON in that function call.

e.g. for ?callback=foo:

foo(/* Your JSON here */);

You should also use the correct content type (application/javascript).

Related Query

More Query from same tag