I\'m trying to upload files to a service on a different domain using CORS, but they keep failing due to the origin being denied. As far as I can see the correct headers are bein
The subdomains are different. As far as CORS is concerned the subdomain, protocol and port have to be identical in the Origin and the Access-Control-Allow-Origin.
In your example it looks like the origin is: https://www.example.com
and the Access-Control-Allow-Origin is: https://files.example.com