【问题解决】YII2 Forbidden (#403) You are not allowed to access this page
来源:互联网 发布:外国网友评论中国网络 编辑:程序博客网 时间:2024/05/22 12:16
首先发生这个错误的原因是你不被允许访问该页面,也是yii2 框架对于安全的一个考虑。
我们需要对config/web.php 进行对gii工具配置
'gii' => [ 'class' => 'yii\gii\Module','allowedIPs' => ['127.0.0.1','::1','192.168.0.*','192.168.178.20']//在这里添加上你的电脑的IP即可]
添加之后访问 basic/web/index.php?r=gii就可以访问到GII工具的页面了
英文不错的同学也可以访问 http://www.yiiframework.com/doc-2.0/guide-start-gii.html
官方文档也对这个问题做了一定说明
0 0
- 【问题解决】YII2 Forbidden (#403) You are not allowed to access this page
- yii-You are not allowed to access this page
- yii-You are not allowed to access this page
- yii-You are not allowed to access this page
- yii gii You are not allowed to access this page.
- Tomcat Manager App--403 Access Denied You are not authorized to view this page
- tomcat进Manager 403 Access Denied You are not authorized to view this page
- You (用户名) are not allowed to access to (crontab) because of pam configuration问题处理
- GitLab: You are not allowed to push code to protected branches on this project.
- remote: GitLab: You are not allowed to push code to this project.
- git You are not allowed to push code to protected branches on this project
- GitLab: You are not allowed to push code to protected branches on this project.
- 提交项目到AppStore签名授权问题“You are not allowed to perform this operation”
- HTTP Error 401.2 - You are not authorized to view this page due to invalid authentication headers
- 登录tomcat 时出现错误:tomcat You are not authorized to view this page
- 【Git之窗】(十二)you are not allowed to push code to protected branches on this project
- This server could not verify that you are authorized to access the document requested.
- php多站点配置以及Forbidden You don't have permission to access / on this server问题解决
- jsp 关闭子窗体刷新父页面
- 【15】3Sum
- java 理解多线程及线程可见性
- odoo8.0【行级别权限】 变相实现员工只能看到归属自己的单据
- AJAX
- 【问题解决】YII2 Forbidden (#403) You are not allowed to access this page
- BootStrap 教程 之 布局组件(03)
- java中抽象类中构造函数使用
- 递归实现JSON转TreeGrid Children形式的JSON
- Java动态代理的实现
- 从头到尾彻底解析Hash表算法
- 【Android】Android相机拍照
- 纯虚函数
- Codeforces Round #367 (Div. 2)C