Hi @prananshupa1,
I think, it's working in your local AEM, because, your machine sends the HTTP request directly to the dispatcher/CDN and is not behind Adobe's egress-controlled IP ranges.
In Cloud, Adobe's infrastructure enforces strict egress controls, and CDN vendors like Fastly or Akamai may bl...