Open Bug 1792647 Opened 2 years ago Updated 2 years ago

Allow all resolvable IP addresses from the local network interface if "localhost" is specified via --remote-allow-origins

Categories

(Remote Protocol :: Agent, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: whimboo, Unassigned)

References

Details

(Whiteboard: [webdriver:backlog])

If clients specify localhost as allowed origin we should automatically allow all the resolvable local IP addresses as well, which would be 127.0.0.1 for IPv4 and if IPv6 is available [::1]. Right now it end-up with a failure and a connection drop:

1664306204342	RemoteAgent	DEBUG	Incorrect Origin header, allowed origins: [http://localhost:9222]
JavaScript error: chrome://remote/content/server/WebSocketHandshake.jsm, line 174: Error: The handshake request has incorrect Origin header http://127.0.0.1:9222
Priority: -- → P3
Whiteboard: [webdriver:triage] → [webdriver:backlog]
See Also: → 1805672

I've filed bug 1805672 specifically for geckodriver.

You need to log in before you can comment on or make changes to this bug.