File: README.md

package info (click to toggle)
golang-github-gorilla-csrf 1.7.2-1~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 296 kB
  • sloc: makefile: 60; javascript: 38
file content (11 lines) | stat: -rw-r--r-- 568 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
# API Backends

Examples in this directory are intended to provide basic working backend CSRF-protected APIs,
compatible with the JavaScript frontend examples available in the
[`examples/javascript-frontends`](../javascript-frontends).

In addition to CSRF protection, these backends provide the CORS configuration required for
communicating the CSRF cookies and headers with JavaScript client code running in the browser.

See [`examples/javascript-frontends`](../javascript-frontends/README.md) for details on CORS and
CSRF configuration compatibility requirements.