From 2dbfc16f980be9b0e46c469ae75e75dea80752a9 Mon Sep 17 00:00:00 2001 From: Laan Tungir Date: Fri, 17 Jul 2026 19:14:57 -0400 Subject: [PATCH] Fix OTS calendar submission: revert Content-Type to application/x-www-form-urlencoded (avoids CORS preflight that application/octet-stream triggers) --- package.json | 2 +- www/js/pq-crypto.mjs | 2 +- www/js/version.json | 6 +++--- www/pq-crypto.bundle.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 1a608fd..1712208 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "post_quantum_nostr", - "version": "0.0.1", + "version": "0.0.2", "description": "A migration strategy for bringing post-quantum security to Nostr without breaking the social graph, without requiring consensus on a single post-quantum algorithm, and without forcing existing users to abandon their identities.", "main": "index.js", "scripts": { diff --git a/www/js/pq-crypto.mjs b/www/js/pq-crypto.mjs index 5515c29..aed7240 100644 --- a/www/js/pq-crypto.mjs +++ b/www/js/pq-crypto.mjs @@ -826,7 +826,7 @@ export async function timestampEvent(eventIdHex) { body: hashBytes, headers: { 'Accept': 'application/vnd.opentimestamps.v1', - 'Content-Type': 'application/octet-stream' + 'Content-Type': 'application/x-www-form-urlencoded' } }); diff --git a/www/js/version.json b/www/js/version.json index 693e249..2240182 100644 --- a/www/js/version.json +++ b/www/js/version.json @@ -1,5 +1,5 @@ { - "VERSION": "v0.0.1", - "VERSION_NUMBER": "0.0.1", - "BUILD_DATE": "2026-07-17T23:05:15.755Z" + "VERSION": "v0.0.2", + "VERSION_NUMBER": "0.0.2", + "BUILD_DATE": "2026-07-17T23:14:56.946Z" } diff --git a/www/pq-crypto.bundle.js b/www/pq-crypto.bundle.js index fe3fccf..a2bd2b1 100644 --- a/www/pq-crypto.bundle.js +++ b/www/pq-crypto.bundle.js @@ -10024,7 +10024,7 @@ async function timestampEvent(eventIdHex) { body: hashBytes, headers: { "Accept": "application/vnd.opentimestamps.v1", - "Content-Type": "application/octet-stream" + "Content-Type": "application/x-www-form-urlencoded" } }); if (!response.ok) {