File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1515 "APP_ENV" : " dev" ,
1616 "APP_SECRET" : " %generate(secret)%" ,
1717 "#TRUSTED_PROXIES" : " 127.0.0.1,127.0.0.2" ,
18- "#TRUSTED_HOSTS" : " localhost, example.com"
18+ "#TRUSTED_HOSTS" : " '^ localhost| example\\ .com$' "
1919 },
2020 "gitignore" : [
2121 " /.env.local" ,
Original file line number Diff line number Diff line change 1717}
1818
1919if ($ trustedHosts = $ _SERVER ['TRUSTED_HOSTS ' ] ?? $ _ENV ['TRUSTED_HOSTS ' ] ?? false ) {
20- Request::setTrustedHosts (explode ( ' , ' , $ trustedHosts) );
20+ Request::setTrustedHosts ([ $ trustedHosts] );
2121}
2222
2323$ kernel = new Kernel ($ _SERVER ['APP_ENV ' ], $ _SERVER ['APP_DEBUG ' ]);
Original file line number Diff line number Diff line change 1515 "APP_ENV" : " dev" ,
1616 "APP_SECRET" : " %generate(secret)%" ,
1717 "#TRUSTED_PROXIES" : " 127.0.0.1,127.0.0.2" ,
18- "#TRUSTED_HOSTS" : " localhost, example.com"
18+ "#TRUSTED_HOSTS" : " '^ localhost| example\\ .com$' "
1919 },
2020 "gitignore" : [
2121 " /.env.local" ,
Original file line number Diff line number Diff line change 1717}
1818
1919if ($ trustedHosts = $ _SERVER ['TRUSTED_HOSTS ' ] ?? $ _ENV ['TRUSTED_HOSTS ' ] ?? false ) {
20- Request::setTrustedHosts (explode ( ' , ' , $ trustedHosts) );
20+ Request::setTrustedHosts ([ $ trustedHosts] );
2121}
2222
2323$ kernel = new Kernel ($ _SERVER ['APP_ENV ' ], $ _SERVER ['APP_DEBUG ' ]);
You can’t perform that action at this time.
0 commit comments