Adds csurf to and cookie-parser to manage CRSF protection.

This commit is contained in:
gaba
2016-12-15 12:56:34 -08:00
parent 7ef75fa92c
commit fc042779c2
5 changed files with 32 additions and 6 deletions
+11
View File
@@ -0,0 +1,11 @@
import React from 'react';
export const FormCSRFInput = React.createClass({
render() {
const token = ''; //$('meta[name="csrf-token"]').attr('content');
return (
<input type="hidden" name="authenticity_token" value={token} readOnly={true} />
);
}
});