---
title: "Discussion on \"Should a CLI's Local Web UI Use localhost or a Hostname?\" | Hashnode"
description: "Discussion on \"Should a CLI's Local Web UI Use localhost or a Hostname?\". Should a CLI's local web UI use localhost or a named host on 127.0.0.1? Secure contexts, cookies, DNS rebinding and a local CA, compared side by side."
url: "https://hashnode.com/posts/should-a-cli-s-local-web-ui-use-localhost-or-a-hostname/6afa9b02dafcaa3709040bd8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Should a CLI's Local Web UI Use localhost or a Hostname?](https://demovexa.hashnode.dev/should-a-cli-s-local-web-ui-use-localhost-or-a-hostname?utm_source=hashnode&utm_medium=feed)

Should a CLI's local web UI use localhost or a named host on 127.0.0.1? Secure contexts, cookies, DNS rebinding and a local CA, compared side by side.

20h ago · 6 min read · demovexa.hashnode.dev  
Read the article

-   [#cli](https://hashnode.com/tag/cli)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#security](https://hashnode.com/tag/security)
-   [#developer-tools](https://hashnode.com/tag/developer-tools)

## Written by

[DemoVexa](https://hashnode.com/@demovexa)

@demovexa · Delaware, USA

  
[View profile](https://hashnode.com/@demovexa)

DemoVexa is a desktop app that reads your code and turns it into finished product demo videos, with a script, voiceover and your real UI animated. No screen recording.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
