CORS request to IP not domain name -


how can make cors xmlhttprequest directly ip address, not domain.

for example, load web page example1.org.

i try make cors request http://example2.org/, thats working. cors request http://192.168.1.100 not working. why?

the target of example.org dns entry 192.168.1.100. fiddler2 http sniffer says, browser not making request, check cors http header sent server.

i've tried google chrome version 29.0.1510.0 canary , version 26.0.1410.64 m.

example code cors request (that code working. i'm not on page in example.org origin.):

var req = new xmlhttprequest(); req.withcredentials = false; req.open('get', 'http://example2.org:8088/getmydata', true); req.onreadystatechange = function() {     console.log(req.responsetext); }; req.send(); 

if attempt @ connection considered local ip address browsers may have (or may start have) restrictions.

another thing might causing problems if page on https , ip address not.

however, without more information hard tell problem here.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -