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?
Asked
Active
Viewed 706 times
2

Venkat Srinivasan
- 435
- 4
- 17
1 Answers
1
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.

Nahuel Varela
- 1,022
- 7
- 17