在sailsjs 中,403“您无权查看您尝试访问的页面"添加新页面、控制器和模型时产生错误 [英] in sailsjs , 403 "You don't have permission to see the page you're trying to reach" error produce when adding new pages ,controllers and models

查看:49
本文介绍了在sailsjs 中,403“您无权查看您尝试访问的页面"添加新页面、控制器和模型时产生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先我在本地运行我的帆项目,在我推送 git repo 之后,我在线更改,然后推送到远程位置.然后我在本地下载.这种变化会产生权限问题.那是

First i run my sails project in local , after i pushed in git repo and then i changed in online and then pushed in remote place. then i downloaded in my local. This changes produce permission problem. that is

"You don't have permission to see the page you're trying to reach" 

这个错误是我在 mongo 中插入数据时引起的.我该做什么 ?我想得到输出

this error caused while i was inserting data in mongo. what i should do ? i want get output back

推荐答案

这是一个猜测,因为我不确定你的代码是什么样的,但我猜你没有包含以下 CSRF 行

This is a guess since I'm not sure what your code looks like but I'm guessing you haven't included the following CSRF line

<input type="hidden" name="_csrf" value="<%= _csrf %>" />

在执行 POST 的表单中.

inside your form which is doing the POST.

这篇关于在sailsjs 中,403“您无权查看您尝试访问的页面"添加新页面、控制器和模型时产生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆