Commit d9712eb
committed
docs(deploy): tell Docker users to browse 127.0.0.1, not localhost
The Docker walkthrough's Step 6 sends users to http://localhost:7456. That is
the one loopback name the daemon reserves for powered previews whenever it is
bound to 127.0.0.1, so the browser's /api calls come back 403 'Powered preview
origin cannot access this API route' and the front end renders the swallowed
failure as an empty project list. curl and MCP clients send no sec-fetch-*
headers and are unaffected, which is why it reads as missing data rather than a
blocked request.
Measured against the guard on main, with the Host header as the only variable:
bind 127.0.0.1 (docker-compose.linux.yml) Host: localhost -> 403, 127.0.0.1 -> 200
bind 0.0.0.0 (docker-compose.yml) Host: localhost -> 403, 127.0.0.1 -> 200
So this is not Linux-specific as originally reported: reportHostForPoweredPreview()
maps 0.0.0.0 to 127.0.0.1, which leaves localhost reserved under the default
Compose file too.
Points Step 6 at 127.0.0.1 (matching the curl in Step 5), explains why, adds a
symptom-keyed entry to Common Issues, and notes the browser URL in the Linux
host-networking section of deploy/README.md.
Part of #62631 parent 517f39a commit d9712eb
2 files changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
112 | 119 | | |
113 | 120 | | |
114 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
88 | 94 | | |
89 | 95 | | |
90 | 96 | | |
| |||
96 | 102 | | |
97 | 103 | | |
98 | 104 | | |
| 105 | + | |
0 commit comments