2

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?

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.