Nginx as a proxy for cross domain ajax requests
Alex Egg
eggie5 at gmail.com
Tue Sep 11 06:38:15 MSD 2007
OK,
So assuming I did the above, how would I access the proxy from inside nginx?
What URL would I give to javascript?
On 9/10/07, Maxim Dounin <mdounin at mdounin.ru> wrote:
>
> Hello!
>
> 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 {
> proxy_pass http://example.com/axaj-endpoint-on-remote-site;
> }
>
> It is not currently possible to use proxy without prior knowledge of
> destination domain.
>
>
> Maxim Dounin
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20070910/9183a84a/attachment.html>
More information about the nginx
mailing list