(after applying T406365 fix) In local testing with iOS 12 and 15 devices, we seem to have some failures in the CORS anonymous loads of images (needed to get at the cross-origin data to calculate average color and crop position). This may be inconsistent and depend on config and factors, but seems to be the case when redirects get involved:
on iOS 12:
[Error] Unable to get image data from canvas because the canvas has been tainted by cross-origin data. getColor (load.php:10:643) compute (load.php:38:794) onLoad (load.php:38:1046) [Error] Error: FastAverageColor: security error (CORS) for resource http://upload.wikimedia.org/wikipedia/commons/thumb/5/56/GrandCanyon.NASA.2014.jpg/300px-GrandCanyon.NASA.2014.jpg.
[Error] Cross-origin redirection to https://upload.wikimedia.org/wikipedia/commons/thumb/3/31/Canyon_River_Tree_%28165872763%29.jpeg/1280px-Canyon_River_Tree_%28165872763%29.jpeg denied by Cross-Origin Resource Sharing policy: Origin http://moya.local:8080 is not allowed by Access-Control-Allow-Origin. [Error] Cannot load image http://upload.wikimedia.org/wikipedia/commons/thumb/3/31/Canyon_River_Tree_%28165872763%29.jpeg/1280px-Canyon_River_Tree_%28165872763%29.jpeg due to access control checks. [Error] Failed to load resource: Cross-origin redirection to https://upload.wikimedia.org/wikipedia/commons/thumb/3/31/Canyon_River_Tree_%28165872763%29.jpeg/1280px-Canyon_River_Tree_%28165872763%29.jpeg denied by Cross-Origin Resource Sharing policy: Origin http://moya.local:8080 is not allowed by Access-Control-Allow-Origin. (1280px-Canyon_River_Tree_(165872763).jpeg, line 0) [Error] [SmartCrop] error: – EncodingError: Access control error.
on iOS 15:
[Error] Cross-origin redirection to http://upload.wikimedia.org/wikipedia/commons/thumb/5/56/GrandCanyon.NASA.2014.jpg/300px-GrandCanyon.NASA.2014.jpg denied by Cross-Origin Resource Sharing policy: Origin http://moya.local:8080 is not allowed by Access-Control-Allow-Origin. Status code: 301 [Error] Cannot load image http://upload.wikimedia.org/wikipedia/commons/thumb/5/56/GrandCanyon.NASA.2014.jpg/300px-GrandCanyon.NASA.2014.jpg due to access control checks. [Error] Failed to load resource: Cross-origin redirection to http://upload.wikimedia.org/wikipedia/commons/thumb/5/56/GrandCanyon.NASA.2014.jpg/300px-GrandCanyon.NASA.2014.jpg denied by Cross-Origin Resource Sharing policy: Origin http://moya.local:8080 is not allowed by Access-Control-Allow-Origin. Status code: 301 (300px-GrandCanyon.NASA.2014.jpg, line 0)
[Error] Cross-origin redirection to http://upload.wikimedia.org/wikipedia/commons/thumb/5/56/GrandCanyon.NASA.2014.jpg/1280px-GrandCanyon.NASA.2014.jpg denied by Cross-Origin Resource Sharing policy: Origin http://moya.local:8080 is not allowed by Access-Control-Allow-Origin. Status code: 301 [Error] Cannot load image http://upload.wikimedia.org/wikipedia/commons/thumb/5/56/GrandCanyon.NASA.2014.jpg/1280px-GrandCanyon.NASA.2014.jpg due to access control checks. [Error] Failed to load resource: Cross-origin redirection to http://upload.wikimedia.org/wikipedia/commons/thumb/5/56/GrandCanyon.NASA.2014.jpg/1280px-GrandCanyon.NASA.2014.jpg denied by Cross-Origin Resource Sharing policy: Origin http://moya.local:8080 is not allowed by Access-Control-Allow-Origin. Status code: 301 (1280px-GrandCanyon.NASA.2014.jpg, line 0) [Error] [SmartCrop] error: – EncodingError: Access control error.
