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:
+1
-1
@@ -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": {
|
||||
|
||||
@@ -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
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user