diff --git a/README.md b/README.md index c3efde8..e25d5d2 100644 --- a/README.md +++ b/README.md @@ -385,6 +385,8 @@ Swaps nibble pairs of an even-length hex string. Connects to a local [pysim-otaman-server](https://github.com/anttro/pysim-otaman-server) for live card operations. +> **Browser restriction:** when the PWA is served from a public HTTPS host, reaching the local server (`http://127.0.0.1:8080`) requires two things: the server must send `Access-Control-Allow-Private-Network: true` (pysim-otaman-server ≥ 1.6.1 does this automatically), and the browser must be allowed to access the local network — in Chrome/Edge/Vivaldi: Site settings → Local network access → allow the site (or accept the permission prompt). Without the browser permission, the request to `127.0.0.1` is blocked before any preflight is sent. + ### File Browser Browse the UICC filesystem in a tree view. Files are shown with names, FIDs, and AIDs (for ADFs). Click to read contents. diff --git a/README_RUS.md b/README_RUS.md index 9429879..6b93338 100644 --- a/README_RUS.md +++ b/README_RUS.md @@ -384,6 +384,8 @@ PWA проверяет версию сервера при подключении Подключение к локальному [pysim-otaman-server](https://github.com/anttro/pysim-otaman-server) для работы с картой. +> **Ограничение браузера:** если PWA раздаётся с публичного HTTPS-хоста, для доступа к локальному серверу (`http://127.0.0.1:8080`) нужны два условия: сервер должен отправлять `Access-Control-Allow-Private-Network: true` (pysim-otaman-server ≥ 1.6.1 делает это автоматически), и браузеру должно быть разрешено обращаться к локальной сети — в Chrome/Edge/Vivaldi: Настройки сайта → Доступ к локальной сети → разрешить сайт (или подтвердить запрос). Без разрешения браузера запрос к `127.0.0.1` блокируется ещё до отправки preflight. + ### Файловый менеджер Дерево файлов UICC. Отображаются имена, FID и AID (для ADF). Клик для чтения содержимого. diff --git a/help-ru.html b/help-ru.html index 619fa27..4373d25 100644 --- a/help-ru.html +++ b/help-ru.html @@ -377,7 +377,7 @@ pip install . # Запустить сервер pysim-otaman-server --http-port 8080
Подключите PC/SC-ридер с SIM-картой и укажите в PWA адрес http://127.0.0.1:8080.
Если PWA раздаётся с публичного HTTPS-хоста (например, https://otaman.example.com), браузер применяет Private Network Access: сервер автоматически отвечает на preflight заголовком Access-Control-Allow-Private-Network: true, поэтому локальный сервер карт остаётся доступным из размещённого PWA.
Если PWA раздаётся с публичного HTTPS-хоста (например, https://otaman.example.com), для доступа к локальному серверу карт нужны два условия: (1) сервер отвечает на preflight заголовком Access-Control-Allow-Private-Network: true (pysim-otaman-server ≥ 1.6.1 делает это автоматически), и (2) браузеру должно быть разрешено обращаться к локальной сети — в Chrome/Edge/Vivaldi: Настройки сайта → Доступ к локальной сети → разрешить сайт (или подтвердить запрос). Без разрешения браузера запрос к 127.0.0.1 блокируется ещё до отправки preflight.
Connect a PC/SC reader with a SIM card, then point the PWA at http://127.0.0.1:8080.
If the PWA is served from a public HTTPS host (e.g. https://otaman.example.com), the browser enforces Private Network Access: the server answers the preflight with Access-Control-Allow-Private-Network: true automatically, so a local card server stays reachable from the hosted PWA.
If the PWA is served from a public HTTPS host (e.g. https://otaman.example.com), two things are required to reach a local card server: (1) the server must answer the preflight with Access-Control-Allow-Private-Network: true (pysim-otaman-server ≥ 1.6.1 does this automatically), and (2) the browser must be allowed to access the local network — in Chrome/Edge/Vivaldi: Site settings → Local network access → allow the site (or accept the permission prompt). Without the browser permission, the request to 127.0.0.1 is blocked before any preflight is sent.