Skip to content

Redirect http to https when using serve --ssl #9445

@ravishivt

Description

@ravishivt

It would be a nice feature to automatically redirect clients from http:// to https:// if the application is being served with --ssl.

It gets tricky to implement since the server only listens on one port and you can't serve http and https on the same port. What I do with other dev severs is listen on two ports such as 8080 and 8443 where if the dev goes to http 8080, it automatically redirects to https 8443. To support this, the --ssl option could take a port instead of a boolean. This would not override the --port option.

I'm OK with closing this as well with "devs need to be conditioned to use https" but I thought I'd open the discussion.

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