Skip to content

docs: qualify Freighter HTTPS requirement for localhost - #2851

Open
devtechedge wants to merge 2 commits into
stellar:mainfrom
devtechedge:freighter-localhost-secure-context
Open

docs: qualify Freighter HTTPS requirement for localhost#2851
devtechedge wants to merge 2 commits into
stellar:mainfrom
devtechedge:freighter-localhost-secure-context

Conversation

@devtechedge

Copy link
Copy Markdown

What and why

The dapp frontend guide stated one unqualified requirement: "Freighter wallet requires a secure connection (HTTPS) to interact with your dapp", then pointed readers at HTTPS setup for localhost. http://localhost and http://127.0.0.1 are already Potentially Trustworthy origins under the W3C Secure Contexts specification, so plain HTTP on loopback satisfies Freighter's secure-context requirement and the sentence overstates what is needed.

The paragraph now names the loopback exception and keeps the HTTPS setup steps as optional. Nothing else in the guide changes.

Fixes #2773

Testing

Docs-only change; verified the surrounding section still reads correctly and the mkcert / next dev --experimental-https steps remain intact.

http://localhost and http://127.0.0.1 are secure contexts per the W3C
Secure Contexts specification, so the blanket HTTPS requirement gave
the wrong impression for local development. Keep the HTTPS setup steps
as optional.

Fixes stellar#2773
Copilot AI balanced review requested due to automatic review settings September 11, 2026 22:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Clarifies Freighter’s HTTPS guidance for localhost development.

Changes:

  • Documents loopback HTTP as a secure context.
  • Keeps HTTPS setup instructions optional.
Suppressed comments (1)

docs/build/guides/dapps/frontend-guide.mdx:78

  • This paragraph now makes a normative browser/security-context claim, but it only names the W3C specification and does not link to it. Please add the cited specification URL so readers can verify the localhost/loopback exception (the linked issue explicitly calls for this citation).
Freighter wallet requires a secure connection to interact with your dapp. Browsers treat `http://localhost` and `http://127.0.0.1` as secure contexts per the W3C Secure Contexts specification, so local development over plain HTTP works without extra setup. To enable HTTPS on localhost anyway, you can use a tool like `mkcert`. Fortunately, Next.js provides built-in support for HTTPS.

Note

Copilot is running an experiment and ran this review at Lite.


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

### Setup HTTPS on Localhost

Freighter wallet requires a secure connection (HTTPS) to interact with your dapp. To enable HTTPS on localhost, you can use a tool like `mkcert`. Fortunately, Next.js provides built-in support for HTTPS.
Freighter wallet requires a secure connection to interact with your dapp. Browsers treat `http://localhost` and `http://127.0.0.1` as secure contexts per the W3C Secure Contexts specification, so local development over plain HTTP works without extra setup. To enable HTTPS on localhost anyway, you can use a tool like `mkcert`. Fortunately, Next.js provides built-in support for HTTPS.
Copilot AI review requested due to automatic review settings September 11, 2026 22:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The frontend guide states an unqualified Freighter HTTPS requirement that localhost does not need

2 participants