How to set X-Frame-Options to SAMEORIGIN in Google Cloud Run?

Hi everyone,

Some developers solved the issue of custom components not rendering by adjusting X-Frame-Options to SAMEORIGIN … probably because the default value in their chosen deployment option is DENY.

Does anyone know how to set this (X-Frame-Options: SAMEORIGIN) in Google Cloud Run deployments?

FYI, here are the discussions where this solution comes up (at least the ones I found):