Fix a mistake in cryptography

This commit is contained in:
Gaspard Wierzbinski 2024-04-09 16:33:52 -10:00 committed by GitHub
parent ab07e88640
commit dc1b8c7447
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -101,7 +101,7 @@ const signatureBase64 = btoa(
The request can then be sent with the `Signature`, `Origin` and `Date` headers as follows: The request can then be sent with the `Signature`, `Origin` and `Date` headers as follows:
```ts ```ts
await fetch("https://example.com/users/uuid/inbox", { await fetch("https://receiver.com/users/22a56612-9909-48ca-84af-548b28db6fd5/inbox", {
method: "POST", method: "POST",
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",