@nullabyte/hotplate-middleware-csrf-injector

Middleware for the server hotplate that always injects the CSRF token into res.render, if the CSRF token exists on the route

Usage no npm install needed!

<script type="module">
  import nullabyteHotplateMiddlewareCsrfInjector from 'https://cdn.skypack.dev/@nullabyte/hotplate-middleware-csrf-injector';
</script>

README

csrf-injector

Middleware for the server hotplate that always injects the CSRF token into res.render, if the CSRF token exists on the route