3 ms·
Great article on how to get Nginx to JSONP for you, but I question the idea that setting up a proxy to a paid API with your client key embedded is a good idea..
by cdcarter 15y ago
Great article on how to get Nginx to JSONP for you, but I question the idea that setting up a proxy to a paid API with your client key embedded is a good idea... Seems easy to abuse.
- njharman 15y agoI often have to create a service/api to serve (and cache) 3rd party content cause of rate limiting. a few servers much < than 10,000's of clients. This makes a few days of work/testing into a few 10's of minutes.
- justincormack 15y agoYou can set them to "internal" in the nginx config so they can only be called by other nginx config, not directly by clients. You also need to check the error messages do not leak urls. Then there is rate limiting etc, depends on the service.