Update proxy trusted

This commit is contained in:
2021-11-16 17:49:48 +01:00
parent 4269ee9d40
commit e089a23a04

View File

@@ -5,7 +5,6 @@
* file.
*/
import proxyAddr from 'proxy-addr'
import Env from '@ioc:Adonis/Core/Env'
import { ServerConfig } from '@ioc:Adonis/Core/Server'
import { LoggerConfig } from '@ioc:Adonis/Core/Logger'
@@ -77,7 +76,7 @@ export const http: ServerConfig = {
| headers.
|
*/
trustProxy: proxyAddr.compile('true'),
trustProxy: () => true,
/*
|--------------------------------------------------------------------------