dndnext / shentaria

A google maps like mapping tool for dnd worlds
0 stars 1 forks source link

Need a nice way to pass csrf token to react-refetch connect hoc #25

Closed maael closed 5 years ago

maael commented 5 years ago

Done via literally just reading it in from localstorage on a request from react-refetch, and adding it manually into the x-csrf-token header. That way when you're using react-refetch you don't even need to be aware of the fact you're using csrf tokens.