diff --git a/plugins/localhost/README.md b/plugins/localhost/README.md index 9eb24df5..f7afb56d 100644 --- a/plugins/localhost/README.md +++ b/plugins/localhost/README.md @@ -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") );