require valid OpenWebRX ticket for all authorize calls

This commit is contained in:
2026-04-02 23:00:45 +02:00
parent 8c031a939c
commit 25bd51c0db
2 changed files with 3 additions and 34 deletions

View File

@@ -1671,6 +1671,9 @@ test("openwebrx session is owner-bound and release disables tx first", async (t)
const authOk = await fetch(`${baseUrl}/v1/openwebrx/authorize?ticket=${encodeURIComponent(session.session.ticket)}`);
assert.equal(authOk.status, 200);
const authWithoutTicket = await fetch(`${baseUrl}/v1/openwebrx/authorize`);
assert.equal(authWithoutTicket.status, 403);
await requestJson(baseUrl, "/v1/openwebrx/tx/enable", {
method: "POST",
headers,