try to create multiple window in tauri 2 but get 400 #9487
-
i copy this code from Guides in App.vue
get this error in console
what am i doing wrong.... |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
you should have a .json file in src-tauri/capabilities folder. Open that and there should be a Please bear with us while we're working on the docs... |
Beta Was this translation helpful? Give feedback.
-
That works, thx! |
Beta Was this translation helpful? Give feedback.
-
It didn't work again. I added relevant content, but it still reported an error: "webview.create_webview not allowed. Permissions associated with this command: webview:allow-create-webview" |
Beta Was this translation helpful? Give feedback.
-
What am I doing wrong? Windows 11, Tauri V2 error:
default.json {
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
"description": "Capability for the main window",
"windows": ["main"],
"permissions": [
"core:default",
"opener:default",
"core:window:allow-start-dragging",
"core:webview:allow-create-webview-window"
]
} |
Beta Was this translation helpful? Give feedback.
you should have a .json file in src-tauri/capabilities folder. Open that and there should be a
permissions
array. Just add"webview:allow-create-webview-window"
to that and it should work.Please bear with us while we're working on the docs...