I'm using KrakenJS as a node framework. This uses express, so the issue may lie there. However I've looked at express documentation and krakenjs examples and I'm not doing anything different... so perhaps it's the way nginx and node are interacting for me. the section in my controller code looks like this:
nothing crazy. if I change post to get, I can send the data and consume it no problem. please keep in mind that there are no missing variables. all I'm getting when making the POST request is an error 500 from nginx... which ultimately means there is probably something going on with node? but there is no real logging available to see what's breaking, or why. any ideas? asked 12 Jun '14, 16:41 bugeyed |
You might need to configure CSRF headers: answered 13 Jun '14, 23:04 seanf |
Try running your app in the foreground and watch the output while you trigger the error in your browser. Once you get an error message, add it to your question above and we'll try to help you resolve it.
127.0.0.1 - - [Fri, 13 Jun 2014 12:47:10 GMT] "POST /email HTTP/1.0" 500 42 "(this is my url, it is correct)" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36"
This is all that I've been seeing. access log shows the same thing, and nothing in the error log. However, I have noticed that the headers from the request may be giving me a clue.
I'm thinking the POST request is failing before the remove address doesn't match the request URL? or perhaps that host and origin are different in that one includes http://