mirror of
https://github.com/wassname/talk.git
synced 2026-09-11 12:51:33 +08:00
Adds csurf to and cookie-parser to manage CRSF protection.
This commit is contained in:
@@ -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} />
|
||||
);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user