The problem of reverse proxy http service when nginx opens https
When we use nginx to enable https, a reverse proxy for a local http service will encounter cross-domain problems and report errors strict-origin-when-cross-origin
, which will cause many resources to fail to load.
At this time, just add this statement to the configuration file of the reverse proxy part:
proxy_set_header X-Forwarded-Proto https;