5 ms·
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 $ar
by riffraff 15y ago
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 ');';
}
- tlrobinson 15y agoIndeed, the example code isn't actually JSONP, since it hardcodes the callback.
- jordansjones 15y agoWhich I would guess works for his purposes.