Urgent.News

What's breaking now, across thousands of outlets.

Tech

Native CORS support on GKE Gateway: Offloading cross-origin policy management to infrastructure

Web browsers enforce the Same-Origin Policy by default to protect users from malicious scripts trying to read data across distinct origins. However, modern application architectures almost always require cross-origin communication. Single-page applications, mobile clients, and embedded web components regularly fetch data and stream AI model inferences across separate domains, subdomains, and…

Cross-origin resource sharing (CORS) is a security feature enforced by web browsers that prevents unauthorized cross-origin requests. This is necessary to protect users from malicious scripts trying to access data from distinct origins. However, modern application architectures often require cross-origin communication, such as single-page applications, mobile clients, and embedded web components that need to fetch data and stream AI model inferences across separate domains, subdomains, and ports.

Implementing CORS in each backend service introduces redundant application logic, increases preflight request processing overhead, and leads to configuration sprawl and drift across microservices. To address this, Google has introduced native CORS support directly in the GKE Gateway and Inference Gateway load balancers. This offloads CORS management from individual backend applications to the load balancer, which terminates OPTIONS preflight requests at the network edge and injects required response headers.

The CORS filter in HTTPRoute allows configuring policies declaratively, specifying allowed origins, methods, headers, credentials, and caching behavior. Security considerations dictate careful attention to allowOrigins and allowCredentials interactions, with explicit domain lists preferred over wildcards for authenticated APIs. This Preview release supports single-cluster GKE Gateway deployments across various GatewayClasses, including regional and global external load balancers.

However, multi-cluster gateways and combining CORS filters with RequestRedirect filters are not supported.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Tell Me About You

After sixty-seven published posts here, the comments have become one of the best parts of the work. Some of you have run my code, found things I missed, challenged a claim, or brought me a project of…

  • Author has made over sixty-seven posts on the platform.
  • Engages with readers through comments, distinguishing bots from real people.
  • Invites readers to share projects, interests, and reasons for engaging with the forum.

Retries didn't make GitHub resilient. They DDoS'd it.

A capacity blip at GitHub resulted in an outage that lasted 7 hours and 47 minutes. The infrastructure recovered faster than the clients let it.

  • GitHub suffered a seven-hour outage on August 17, 2026.
  • Istio sidecar proxy reached concurrency limit, leading to traffic overflow.
  • Retries worsened the situation, acting like a self-denial of service attack.

Week 11 of #100DaysOfCode: Learning and Building Microservices with Spring Boot

Introduction This week has been another challenging but rewarding part of my #100DaysOfCode journey. I moved from learning Microservices Architecture and related architectural styles into the more…

  • Learner completed first Spring Boot microservice on day 68
  • Explored Reactive Microservices, messaging servers, and security
  • Applied concepts like CORS, Actuator, and OAuth2 in microservices

More from Sunday 30 August →