WebviewWindow open new window get error: Cannot read properties of undefined (reading 'invoke') #11979
-
I used tauri v-2.1 + vite + vue + express to create a macOS app, and now I want to use a new window to open https://google.com, but I also get error:
How can I fixed it so I can use webview to open google.com? Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
https://v2.tauri.app/security/capabilities/#remote-api-access |
Beta Was this translation helpful? Give feedback.
-
Thanks so much~ |
Beta Was this translation helpful? Give feedback.
-
I found that all I had to do was add these two lines to
|
Beta Was this translation helpful? Give feedback.
https://v2.tauri.app/security/capabilities/#remote-api-access