mirror of
https://github.com/anotherhadi/spilltea.git
synced 2026-05-20 09:42:34 +02:00
e8e64eff12
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
975 B
975 B
Scopes
Scopes let you control which requests Spilltea intercepts. Patterns are Go regular expressions matched against host/path (e.g. api.example.com/v1/users).
- Whitelist: if non-empty, only matching requests are intercepted.
- Blacklist: matching requests are always ignored, even if whitelisted.
When both lists are set, a request must pass the whitelist and not be in the blacklist.
Examples
| Pattern | Matches |
|---|---|
example\.com |
any request to example.com |
^api\.example\.com |
only the api subdomain |
example\.com/api/v2 |
a specific path prefix |
\.(js|css|png|woff2?) |
static assets (useful in blacklist) |
googleapis\.com |
all Google API traffic |
/graphql$ |
any host with a /graphql endpoint |