Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

remove header from response from cloud storage

Hi All, 
Problem statement:

  • we are hosting a website on cloud storage 
  • when website is loaded on browser in response we are getting  Server:UploadServer as header
  • As show below
    image.png
    From security perspective we don't want to reveal Server info.
    Can we can remove this header from response
0 2 793
2 REPLIES 2

Hi @san-synthix,

Welcome to Google Cloud Community!

You can't directly remove headers from Google Cloud Storage responses.

Here are some alternative solutions:

  • Use a Content Delivery Network (CDN) like Cloud CDN in front of Cloud Storage.
  • Migrate your website to Cloud Run, a serverless platform that allows header configuration.
  • Rewrite headers using Cloud Load Balancing (if applicable).

Revealing the "Server: UploadServer" header isn't a major security risk, but focus on securing your website application itself.

Hi @christianpaula 

Do you have any examples or documentation demonstrating how to configure headers via cloud run or rewrite headers via GCP load balancer?