[relay] Join page: GET /join hands an invite link opened in a browser to the app
ci / check (pull_request) Has been cancelled
ci / check (pull_request) Has been cancelled
A static page for https://<relay>/join#<invite id>.<secret>, the link messengers make tappable. The fragment never reaches the relay. One button opens amicitia://invite?relay=<origin>#…; its only script and style are named by SHA-256 in a Content-Security-Policy of default-src 'none'; no-store, no-referrer, no cookie, framing refused. PROTOCOL.md §8 lists the route.
This commit is contained in:
@@ -15,6 +15,9 @@ rusqlite = { version = "0.41", features = ["bundled"] }
|
||||
serde = "1"
|
||||
serde_json = "1"
|
||||
subtle = "2"
|
||||
# The join page's Content-Security-Policy names its inline script and style by SHA-256 (base64).
|
||||
sha2 = "0.10"
|
||||
base64 = "0.22"
|
||||
|
||||
[dev-dependencies]
|
||||
getrandom = "0.3"
|
||||
|
||||
Reference in New Issue
Block a user