Skip to content

use nonstandard port to make it more difficult to exploit devserver via known address (localhost:5173) #2

@dominikg

Description

@dominikg

Describe the problem

vite devserver is available at a known port, making it easier to try requests to exploit it

Describe the proposed solution

add option to randomize port, although that could change the origin on the client over restarts. - maybe pseudorandom on vite root?

Alternatives considered

ask user to configure static non-standard port (outside of 3000,5173,4173)

Importance

nice to have

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions