Set Content-Security-Policy

This commit is contained in:
Schluffe committed 2026-10-30 13:39:16 +01:00
1 parent af0a8c9fee
commit 870d55b44f
7 files changed
+67 -25

No files matched your search

+7
View File
@@ -15,6 +15,13 @@
deployments on different versions, the receiver only sees "No sender with this code". Open how a
mismatch would be reported, e.g. by trying the previous version's swarm too.
- Keep a transfer alive on phones: while a share waits or a transfer runs, hold a Screen Wake Lock
(`navigator.wakeLock.request('screen')`), else a phone that dims and locks suspends the tab and
the connection dies. The browser releases it whenever the page is hidden, so it has to be
requested again on `visibilitychange`. In the same phases, a `beforeunload` handler makes the
browser ask before a reload or a closed tab ends the share or transfer. Both go once it's done,
stopped or failed.
## Open observations
- Firefox ignores an errored service worker response stream: when the sender vanishes, the receiver