To fix legend loading issue, for now use the proxy to load them. Think the error is being caused by using the whole URL for the legend and some browsers are erroring on cross domain query even though it is local.