How can we secure cookie by using secure flag? in GCP environment?

How can we secure cookie by using secure flag? in GCP environment ?