Project

General

Profile

lighttpd and cross domain xmlhttprequest

Added by Portisch over 12 years ago

Hi!

Just yesterday I installed lighttpd the first time on my router with dd-wrt firmware.
It is lighttpd version 1.4.31.

I configured the lighttpd server on port 80 and I can successfully start/stop the server.

But now I have a XMLHTTPRequest (GET and POST) on port 80 for XML transfer.
The router with lighttpd have IP 192.168.0.1.
I do a XMLHTTPrequest to 192.168.0.20. I can't modify this server what is sending the XMLHTTPRequest response.

I enter with example IE9 the webserver on 192.168.0.1:80.
The Javascript on the webserver is making XMLHTTPRequests to address 192.168.0.20:80 to get data what will filled into the index.html.

It works with IE9 when I enable the cross domain feature.
But if I disable the cross domain feature (default = disabled) in the security options I can't access the page on the lighttpd webserver.

Is there a way to enable the cross domain feature at lighttpd?
Because if I use my Blackberry it would also not work because there is no option to enable cross domain requests.

thx!