mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
docs(localhost): incorrect usage of RemoteDomainAccessScope in README. (#757)
* Fix incorrect usage of RemoteDomainAccessScope in README. * Fix incorrect usage of RemoteDomainAccessScope in README.
This commit is contained in:
@@ -42,7 +42,7 @@ fn main() {
|
||||
.plugin(tauri_plugin_localhost::Builder::new(port).build())
|
||||
.setup(move |app| {
|
||||
app.ipc_scope().configure_remote_access(
|
||||
RemoteDomainAccessScope::new(format!("localhost:{}", port))
|
||||
RemoteDomainAccessScope::new("localhost")
|
||||
.add_window("main")
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user