fix: /render Token als Query-Parameter statt Authorization-Header

This commit is contained in:
2026-06-12 16:18:34 +02:00
parent 5469a17a3f
commit 51dcaffe0e
2 changed files with 12 additions and 4 deletions

View File

@@ -38,9 +38,9 @@ export default function PaywallKiller() {
function getRenderUrl() {
const snap = snapshotUrl.trim();
// Snapshot-URL die der User eingefügt hat → über /render bereinigen
if (snap && snap.startsWith('https://archive.')) {
return `/api/tools/paywallkiller/render?url=${encodeURIComponent(snap)}`;
const token = localStorage.getItem('sk_token') || '';
return `/api/tools/paywallkiller/render?url=${encodeURIComponent(snap)}&token=${encodeURIComponent(token)}`;
}
return null;
}