Fix OTS calendar submission: revert Content-Type to application/x-www-form-urlencoded (avoids CORS preflight that application/octet-stream triggers)

This commit is contained in:
Laan Tungir
2026-07-17 19:14:57 -04:00
parent 79f9895c16
commit 2dbfc16f98
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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": {
+1 -1
View File
@@ -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'
}
});
+3 -3
View File
@@ -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"
}
+1 -1
View File
@@ -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) {