Skip to content

isPrivateIp Does Not Detect localhost Hostname #48

@akramcodez

Description

@akramcodez

Description

The isPrivateIp function only checks private IP ranges using regex and does not handle the localhost hostname.
As a result, URLs like http://localhost:3000 are treated as public, which can cause incorrect security or network logic.

Location

  • File: packages/core/src/utils/fetch.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions