resolve crossOrigin error