how can I force to visit my site by 80 port?

前端 未结 2 895
时光取名叫无心
时光取名叫无心 2021-01-26 18:34

I created one website on Firebase, now I want to move the website out from firebase. On the new hosting server, the website url keeps visiting 443 port.

How can I force

2条回答
  •  囚心锁ツ
    2021-01-26 18:48

    Firebase Hosting will only serve traffic over HTTPS, so port 443.

    There is no way to force traffic to be served over non-secured HTTP. But traffic coming in to port 80 will (or at least should) automatically get redirected to port 443 with a 307 response.

    From a quick test request I just did:

    Request URL:http://trenches.firebaseapp.com/

    Request Method:GET

    Response

    Status Code:307 Internal Redirect

    Location:https://trenches.firebaseapp.com/

    Non-Authoritative-Reason:HSTS

提交回复
热议问题