Blog

Google Cloud Functions (2nd gen): CORS on Cloud Run, ingress settings, and IAM invoker for browsers

Gen2 functions are Cloud Run services—configure CORS on the service or at the load balancer in front.

1 min read
gcpcloud-functionscors

Min instances

Setting min instances removes some cold starts—compare OPTIONS latency before and after.

CPU always allocated changes billing—do not confuse cost spikes with CORS misconfigurations.

VPC connector

Egress through a connector can change NAT IP—update partner allowlists alongside CORS docs.

Back to blog