fix(cors): enable preflight for Capacitor WebView requests

Add express cors middleware with reflected origin so Android clients
from https://localhost receive Access-Control-Allow-* headers on
OPTIONS and can proceed with POST requests.
This commit is contained in:
Jose Olarte III
2026-06-04 18:26:22 +08:00
parent df442df869
commit dffb86007e
3 changed files with 3807 additions and 0 deletions

3796
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff