HTTPS not workin for localhost with --https · Issue #5045 · ionic-team/ionic-cli · GitHub
Skip to content

HTTPS not workin for localhost with --https #5045

Open

Description

@sseppo

I found couple of posts about getting https server running in ionic react projects with
ionic serve --https

However that does not work. It still starts the server as http, and manually changing url to https does not help. I have created the certificates using
ionic ssl generate

Also, running
ionic --help

does not show option --https (or --ssl either).

I am using ionic 7.

Activity

  1. reslear commented on Oct 12, 2023

    @reslear

    duplicate #5028

  2. sseppo commented on Oct 12, 2023

    @sseppo
    Author

    @reslear, thanks for the comment, but is it dublicate or just possibly related? I mean, in the other thread it is trying to run on ios, this tries to run on desktop, not mobile. Also, there it is not using --ssl or --https which is mentioned that should be used in other threads about the subject. And it is for Vite, I have understood that the --https is only for React.

    Anyway, it is also related to https so good to have that linked too. I will keep looking into that too. But I think it is not dublicate so good to have them both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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