JacquesB
JacquesB

Reputation: 42689

Google Cloud Run automatically redirecting to "https"

I have a Google Cloud Run app. I need it to support both "http://" and "https://" requests on a custom domain (for legacy reasons). But it seems all http requests are automatically redirected to https. (A Redirect with status 302 is sent.) The redirect response include the header "Server: Google Frontend" which, if I understand correctly, suggest the redirect happen in some frontend before the request hit my application.

Does cloud run mandate https, or is there is configuration somewhere to allow both schemes?

(I understand that Cloud Run internally proxies all requests to the container as http on port 8080, regardless of scheme/port of the external url. My question is if it is possible to have external requests as http.)

Upvotes: 1

Views: 1888

Answers (1)

Steren
Steren

Reputation: 7947

Cloud Run only supports https. http request will receive a 302 to the https endpoint.

Upvotes: 5

Related Questions