Friday Update to CDN 403 Issue?
I'm not exactly sure what has been done... but it seems something was changed with the CDN server.
My server is having problems getting the content of IMAGE files stored in the SHOPIFY CDN. It's returning ERROR 403 FORBIDDEN when trying to fetch images via CURL.
Looks like CURL requests now require CURLOPT_USERAGENT and a CURLOPT_REFERER to function properly. This is a breaking change and should have been broadcasted to App developers somehow.
The issue seems to be present with PHP's file_get_contents - its not working with product images on the cdn when using default config settings - file_get_contents($path). Also, its very possible that it is somewhat randomly working/not working.
When I switched from using file_get_contents to a custom CURL function with USERAGENT AND REFERRER included - the problem has been resolved.