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',

]
];
}
posted @ 2017-12-22 09:54  to_simple  阅读(2521)  评论(0编辑  收藏  举报