Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Building-Data-Science-Applications-with-FastAPI
/ csrf
Route
csrf
chapter7/csrf/app.py:None–None ·
view source on GitHub ↗
app.get("/csrf")
Source
from the content-addressed store, hash-verified
1
from
typing
import
cast
2
3
from
fastapi
import
Depends, FastAPI, Form, HTTPException, Response, status
4
from
fastapi.security
import
APIKeyCookie
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected