问题
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