Fixes cross origin CSRF bug (#1984)

I submitted a pull request a while back - I missed an important step in the process. See here: https://github.com/balderdashy/sails/issues/1984