Search code examples
firebasefirebase-hosting

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


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 the port change? Is there any cached on the web browser I need clean them up maybe? I want to make it 80 port by default.


Solution

  • 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