Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/lib/searxng.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ export const searchSearxng = async (
try {
const res = await fetch(url, {
signal: controller.signal,
headers: {
// SearXNG's default botdetection rejects requests that do not identify
// an origin IP. Server-side searches from Vane do not have a browser
// proxy adding these headers, so provide a loopback address explicitly.
'X-Forwarded-For': '127.0.0.1',
'X-Real-IP': '127.0.0.1',
},
});

if (!res.ok) {
Expand Down