fix: allow non-local RPC hosts and improve HTTPS-Only guidance

- Add wildcard host permissions for RPC calls
- Surface HTTPS-Only hint in Options test flow
- Update Troubleshooting docs for HTTPS-Only and host perms
This commit is contained in:
Jordan Wages 2025-08-22 00:22:12 -05:00
commit c34227e3b6
3 changed files with 33 additions and 6 deletions

View file

@ -104,6 +104,8 @@ For development, make changes and click “Reload” in `about:debugging` to pic
- No links found: ensure you are on a `/download/*` page (not the item overview). Try reloading after the page finishes loading.
- RPC errors: verify `aria2c` is running with `--enable-rpc` and that the secret/token matches. Check endpoint URL and port.
- HTTPS-Only Mode: if your aria2 endpoint is `http://` on a non-local host, Firefox may upgrade it to `https://` and the request will fail. Use HTTPS on the aria2 RPC (preferred), add a site exception for the host, or disable HTTPS-Only Mode while testing.
- Host permissions: the extension needs host permission to reach non-local RPC endpoints. The manifest includes wildcard host permissions; if you self-package, ensure your manifest allows your RPC host(s).
- CORS/Network: Extensions can call cross-origin endpoints with host permission. If using HTTPS with a self-signed cert, allow it in Firefox or use a valid cert.
- Clipboard blocked: confirm the browser allowed clipboard write; try clicking the button again or check site focus.
@ -128,4 +130,3 @@ Issues and PRs are welcome. If proposing new filters or aria2 options, please in
## Disclaimer
This project is not affiliated with archive.org or aria2. Use responsibly and respect site terms of service.