Solve the problem that Url is always Http when Laravel opens HTTPS reverse proxy

After various tracking
need to modify the config/trustedproxy.phpconfiguration file 'proxies' modified from the original null Specifically, as

'proxies' => '*'

Otherwise, the following 'headers' => Illuminate\Http\Request::HEADER_X_FORWARDED_ALL,configuration will not take effect.

Published 57 original articles · won praise 0 · Views 2188

Guess you like

Origin blog.csdn.net/zhidc/article/details/105267442