首页 > 解决方案 > [GCP][Node] serve [Expressjs] app via HTTPS from GCP Compute Instance

问题描述

I have an express app running on a Google Cloud Platform Compute instance. I would like to serve it via HTTPS. The react app on client side gives me the following:

Mixed Content: The page at 'https://ahv-client.now.sh/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://<GCP COmpute IP>:<PORT>/socket.io/?EIO=3&transport=polling&t=NBgB8QR'. This request has been blocked; the content must be served over HTTPS.

标签: node.jsexpressgoogle-compute-engine

解决方案


推荐阅读