You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Host-filtering with wildcard in the port field doesn't work.
let server = WsServerBuilder::default().set_allowed_hosts(["http://localhost:*","http://127.0.0.1:*"]).unwrap().build("127.0.0.1:0").await.unwrap();let client = WsClientBuilder::default().build(&server_url).await.unwrap();let client = Arc::new(client);let r = client.request::<String>("say_hello",None).await;// Fails with 403 because the entire address is compared such as as `http://localhost:31881 != http://localhost:*`assert!(r.is_ok());
I have checked the HTTP server and it actually supports wildcards.
The text was updated successfully, but these errors were encountered:
niklasad1
changed the title
[ws server]: host-filtering with * doesn't work
[ws server]: host-filtering with wildcard as port number doesn't work
May 23, 2022
Host-filtering with wildcard in the port field doesn't work.
I have checked the HTTP server and it actually supports wildcards.
Also see paritytech/substrate#11480 for further information
The text was updated successfully, but these errors were encountered: