We are creating a web api application. In one of our API’s if there are
validation errors, we are returning the error message in JSONP format.
the API Request URL user adds a query string parameter
On validation failure we are throwing a 400 bad request JSONP with
message in the below format.
It is working good in all the environments, where there is no nginx. In
staging environment we have nginx configured.
Here it is modifying the output as below.
Because of this our front end application is unable to read the response
Could you please let me know, what configuration setting of nginx could
cause this problem?
Thanks in Advance
Posted at Nginx Forum: