Skip to content

Ionic serve and live reload need security (expose all code to anyone on same network). #2711

@sachingarg05

Description

@sachingarg05

Ionic serve and live reload need security, currently it exposes all code to anyone on same network. Its very helpful to be able to bind to external IP and open the URL on a bunch of ios and android devices and different browsers and have all of them refresh automatically with every code change. But this also opens it up to everyone else on the network.

It needs multiple sub-features, but the simplest and easiest to add should be this:

These can be optionally added later:

  • Add https support, even if with just a self-signed certificate. Will secure against network sniffers, and as a side-effect also allow testing for https compatibility of actual app.
  • Maybe add a url parameter ?token=aaaaaa with a random token to allow both security and easy sharing. I have seen some tools do this, but personally I would prefer http basic auth + https.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions