Hi@akhtar,
In your case, you need to set a cross-origin resource sharing mechanism in the cloud function, as shown below.
response.set('Access-Control-Allow-Origin', '*');
Hope it helps!!
If you need to know more about Google Cloud, We recommend joining GCP Certification course today.
Thanks!