Decide dynamically whether to use cors proxy