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 15
15
"APP_ENV" : " dev" ,
16
16
"APP_SECRET" : " %generate(secret)%" ,
17
17
"#TRUSTED_PROXIES" : " 127.0.0.1,127.0.0.2" ,
18
- "#TRUSTED_HOSTS" : " localhost, example.com"
18
+ "#TRUSTED_HOSTS" : " '^ localhost| example\\ .com$' "
19
19
},
20
20
"gitignore" : [
21
21
" /.env.local" ,
Original file line number Diff line number Diff line change 17
17
}
18
18
19
19
if ($ trustedHosts = $ _SERVER ['TRUSTED_HOSTS ' ] ?? $ _ENV ['TRUSTED_HOSTS ' ] ?? false ) {
20
- Request::setTrustedHosts (explode ( ' , ' , $ trustedHosts) );
20
+ Request::setTrustedHosts ([ $ trustedHosts] );
21
21
}
22
22
23
23
$ kernel = new Kernel ($ _SERVER ['APP_ENV ' ], $ _SERVER ['APP_DEBUG ' ]);
Original file line number Diff line number Diff line change 15
15
"APP_ENV" : " dev" ,
16
16
"APP_SECRET" : " %generate(secret)%" ,
17
17
"#TRUSTED_PROXIES" : " 127.0.0.1,127.0.0.2" ,
18
- "#TRUSTED_HOSTS" : " localhost, example.com"
18
+ "#TRUSTED_HOSTS" : " '^ localhost| example\\ .com$' "
19
19
},
20
20
"gitignore" : [
21
21
" /.env.local" ,
Original file line number Diff line number Diff line change 17
17
}
18
18
19
19
if ($ trustedHosts = $ _SERVER ['TRUSTED_HOSTS ' ] ?? $ _ENV ['TRUSTED_HOSTS ' ] ?? false ) {
20
- Request::setTrustedHosts (explode ( ' , ' , $ trustedHosts) );
20
+ Request::setTrustedHosts ([ $ trustedHosts] );
21
21
}
22
22
23
23
$ kernel = new Kernel ($ _SERVER ['APP_ENV ' ], $ _SERVER ['APP_DEBUG ' ]);
You can’t perform that action at this time.
0 commit comments