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
{{ message }}
Repository navigation
Use loopback address not "localhost" to contact Hub #7
Currently samp.js uses the well-known URL "http://localhost:21012/" to contact the hub.
In order to permit access from an HTTPS web page, the Hub URL should qualify as "Potentially Trustworthy" in the sense of the W3C Secure Contexts document, which means it should use the numeric loopback address "127.0.0.1" (IPv4) or "::1" (IPv6) as the hostname rather than "localhost". Note that later versions of Secure Contexts may allow "localhost" as well, but changing it is likely to improve compatibility with existing software.
Changing "localhost" -> "127.0.0.1" on line 365 of samp.js is easy to do, but I don't know how to test for IPv6 in order to pick the right form, and I don't have an IPv6 machine to test on. If somebody does, can they make this change?
Activity
mbtaylor commentedon Nov 12, 2019
See also http://mail.ivoa.net/pipermail/apps-samp/2019-November/001019.html