Access to debugger is denied due to IP address restriction. debug模块ip限制
在该模块下api->main-local下加入
if (!YII_ENV_TEST) {
// configuration adjustments for 'dev' environment
$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = [
'class' => 'yii\debug\Module',
];
$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = [
'class' => 'yii\gii\Module',
];
$config['modules']['debug'] = [
'class' => 'yii\debug\Module',
'allowedIPs'=>[
'允许访问的ip',
]
];
}