Created
July 11, 2013 13:44
-
-
Save hannseman/5975556 to your computer and use it in GitHub Desktop.
jsonp nginx support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location / { | |
# JSONP-support | |
if ( $arg_callback ) { | |
echo_before_body '$arg_callback('; | |
echo_after_body ');'; | |
} | |
} |
Hey @tawanda, sorry for the late reply. You'll need the HTTP echo module installed. If you are running ubuntu you could install the package nginx-extras to get access to the echo module.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get the following error
unknown directive "echo_before_body" in /etc/nginx/sites-enabled/default:38
help?