Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/saur/application/middleware/authenticity-token.js

a rapid web development framework for deno
Latest
import * as saur from "https://deno.land/x/saur@v0.0.1/application/middleware/authenticity-token.js";

Functions

Verify the authenticity token for each request, disallowing requests that don't include the correct token in either a param or the header. This prevents cross-site request forgery by ensuring any request which can potentially change data is coming from the current host. It can be disabled on a per-request basis by setting the app.config.authenticity.ignore array.