actually pass the crossOrigin flag to the function