Skip to content

Support localhost as URL in iOS Safari to connect to the desktop server #165

@SuperPat45

Description

@SuperPat45

Chrome debugger have a very cool thing:

When the chrome desktop is connected to an android smartphone,
we can use localhost as URL in the android chrome browser like:
http://localhost:8080
to connect to the desktop server (where the smartphone is connected in USB) instead of using the real IP of the desktop.

The big advantage of this technique is that the site is considered secure even when we don't use the https protocol.
Which allow to test API like serviceworker, geolocation, mediarecorder...
(window.isSecureContext === true)

With this, we can also copy/paste localhost URL's to the inspect.dev url bar directly.

Would it be possible to do the same thing on Safari iOS when indepect.dev is connected?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions