Csrf Protection

Hi guys I just want to ask how can i use the plugin https://github.com/pyx/sanic-wtf plugin in ajax reactjs.
First how can i get a valid csrf token to in react. and second if i did get the csrf token how can i pass it to the ajax form. I’ve tried to pass it in a header using ‘x-csrf-token’ key but it still showing “CSRF token missing”.

This may be difficult - I don’t think I’ve seen this one before, and the plugin itself may rely on things that have been long-since deprecated. I think you might need to open an issue on the plugin’s github page so that the author can respond.