-
Use caseWe use tauri as a launcher of some webapps with the following sequence
tauri v1issue
tauri v2issue
configurationtauri.conf.jsoncapabilities/default.jsonquestionWe tried different combinations for remote and local and followed https://infra.spec.whatwg.org We both list and didn't list the capability path in the tauri.conf.json file. The issue probably results from a mistake in the migration from tauri v1 to tauri v2. We didn't manage to locate this mistake. Any idea ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Did you also try (temporarily) hardcoding the port already? From what you wrote, including the posted files, an issue with the url validation in the capability check is what seems most likely to me 🤔 |
Beta Was this translation helpful? Give feedback.
-
|
Hi Fabian, Thank you for your tip. Indeed when I hardcode the port in the capabilty definition it works. It means the issue is on the url syntax ... "remote":{"urls": ["http{s}?://localhost:8080"]},I read again patterns specification and tried several combinations assuming port was a specific "part". I found any functional. Finally I tried this really simple syntax, that works whereas it doesn't really follow the patterns specification (from my understanding) : "remote":{"urls": ["http{s}?://localhost:*/*"]}, |
Beta Was this translation helpful? Give feedback.
Hi Fabian,
Thank you for your tip.
Indeed when I hardcode the port in the capabilty definition it works. It means the issue is on the url syntax ...
I read again patterns specification and tried several combinations assuming port was a specific "part". I found any functional.
Finally I tried this really simple syntax, that works whereas it doesn't really follow the patterns specification (from my understanding) :