Nginx as a proxy for cross domain ajax requests

Maxim Dounin mdounin at
Tue Sep 11 06:05:27 MSD 2007


On Mon, 10 Sep 2007, Alex Egg wrote:

> Hello,
> Is it possible to use nginx as a proxy for cross domain ajax requests?
> if so, how?

If you know destination domain for request - just use pre-configured 
proxy_pass. E.g.:

location /local-ajax-endpoint {

It is not currently possible to use proxy without prior knowledge of 
destination domain.

Maxim Dounin

More information about the nginx mailing list