News for hackers. Stuff that matters.
Re:Nginx JSON hacks by riffraff on Saturday July 16, 2011 @04:45PM (#2771752)
Couldn't the last trick be improved? since you have access to params you could possibly use those as in

    location ^~ /ext_api3/ {
      echo_before_body $arg_callback //+somehow add "(";
      proxy_pass http://api.external.com/;
      echo_after_body ');';
    }
Re:Nginx JSON hacks by tlrobinson on Saturday July 16, 2011 @06:37PM (#2771983)
Indeed, the example code isn't actually JSONP, since it hardcodes the callback.
Re:Nginx JSON hacks by jordansjones on Sunday July 17, 2011 @03:15PM (#2773941)
Which I would guess works for his purposes.