Reputation: 545
A GCP cloud function that takes a HTTP
trigger can be accessed via http
and https
transports.
Is there a way to disable the http
endpoint?
Upvotes: 2
Views: 880
Reputation: 1040
Right now there is no functionality to achieve this from the start.
What you could do, is to redirect any incoming request from HTTP to HTTPS from inside the function. I don't know in which language you are working with but there is a good discussion on this SO post.
Upvotes: 1