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

时光怂恿深爱的人放手 提交于 2019-12-11 23:45:24

问题


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" 

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


回答1:


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 %>" />

inside your form which is doing the POST.



来源:https://stackoverflow.com/questions/28363626/in-sailsjs-403-you-dont-have-permission-to-see-the-page-youre-trying-to-rea

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!