MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / _netloc

Function _netloc

Scripts/ButSystem.py:1490–1495  ·  view source on GitHub ↗
(h: str)

Source from the content-addressed store, hash-verified

1488FILES_MAX_BYTES = 10 * 1024 * 1024 * 1024
1489
1490# ---------------------------
1491# Security helpers (CSRF + per-request nonce + security headers)
1492# ---------------------------
1493# Dependency-free CSRF protection:
1494# - A random token stored in the signed session cookie
1495# - Automatically injected into POST forms (client-side)
1496# - Automatically attached to same-origin POST/PUT/PATCH/DELETE fetch() calls
1497#
1498# This keeps the app Termux-friendly (no extra dependencies) while stopping

Callers 1

_same_origin_okFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected