Commit 4ef86b21 authored by Arnolds's avatar Arnolds
Browse files

Adjusted API request in index.php to include `&retrieve` query parameter.

parent 10c2a0cd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -259,7 +259,7 @@ header('X-Robots-Tag: noindex, nofollow');

            try {
                // IMPORTANT: ideally this should be a POST that only "consumes" on purpose.
                const response = await fetch(`/secret-api.php?id=${encodeURIComponent(id)}`, {
                const response = await fetch(`/secret-api.php?id=${encodeURIComponent(id)}&retrieve`, {
                    method: 'POST',
                    headers: {'Content-Type': 'application/json'},
                    body: JSON.stringify({passphraseHint: !!passphrase}) // optional, backend can ignore