Getting a 'forbidden' error on POST routes when switching SailsJs app to production on appfog

663 Views Asked by At

Usually I can count on someone on Stack Overflow already asking a questions. However, I can't seem to track one down so ... my first post!

I have recently pushed a SailsJs application for deployment on AppFog. When running the app in both development or production mode on my local machine it runs perfectly. When I run it on AppFog as development it runs fine as well. However, as soon as I change the global variable in AppFog to set it to production mode I begin to get 'forbidden' errors when I try to POST to a 'create' route. My gut tells me that there is something going on with the CSRF, but I don't know what. If it is a CSRF issue wouldn't it also be occurring in development mode as well?

Thanks in advance. I'm stuck here and I can find little Sails documentation and what's happening when it switches to production aside from minifing CSS and JS.

0

There are 0 best solutions below