fix for development against localhost
fixed an xhr bug in chrome