yii2 gii Forbidden (#403)解决方案

Forbidden (#403)
You are not allowed to access this page.

/opt/lampp/htdocs/amyflash/blogdemo2/vendor/yiisoft/yii2-gii# vim Module.php
public $allowedIPs = ['127.0.0.1', '::1','your ip'];

这样在 allowedIPs 数组里面的IP全部可以访问了

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>