Open Bug 1805672 Opened 3 years ago Updated 3 years ago

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

Categories

(Testing :: geckodriver, enhancement, P3)

Default
enhancement

Tracking

(Not tracked)

People

(Reporter: whimboo, Unassigned)

References

Details

(Whiteboard: [webdriver:backlog])

Originally filed as: https://github.com/mozilla/geckodriver/issues/2048

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:

➜  gecko-hg curl http://127.0.0.1:4444/session -X POST -H "Origin: http://localhost:4444"
{"value":{"error":"unknown error","message":"Invalid Origin header http://localhost:4444","stacktrace":""}}

See also bug 1792647 which covers the Remote Agent.

Summary: Allow all resolvable IP addresses from the local network interface if "localhost" is specified via --remote-allow-origins → Allow all resolvable IP addresses from the local network interface if "localhost" is specified via --allow-origins
Priority: -- → P3
Whiteboard: [webdriver:backlog]
You need to log in before you can comment on or make changes to this bug.