Fix fallback from websocket when behind proxy (#13299)

Change-Id: Id12cb97816afde4363caea20ff30376ff9cdb173