Skip to content

hideden/ngx_http_jsonp_callback

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

./configure --add-module=./path/to/ngx_http_jsonp_callback


ex)

location /jsonp_api {
    jsonp_callback         callback;
    jsonp_callback_types   text/javascript;
    proxy_pass  http://application-servers
    # memcached_pass   memcached_server:11211;
    # error_page 404 = @data_fetch_and_cache;
}


http://example.com/jsonp_api?id=xxxx
    -> {"status":"success"}

http://example.com/jsonp_api?id=xxxx&callback=cb_func_123456
                                              ^^^^^^^^^^^^^^
    ->  cb_func_123456({"status":"success"});


About

nginx append jsonp callback module.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published