Title: cors-proxy: support per-pod /
Open Graph Title: cors-proxy: support per-pod /
X Title: cors-proxy: support per-pod /
Description: Follow-up from #379 (Copilot review pass 11). The Phase 1 cors-proxy in #379 routes everything through a single global `/proxy` endpoint. That works cleanly for: Single-user mode: pod is at `/` so `/proxy` is part of the (single) pod's U...
Open Graph Description: Follow-up from #379 (Copilot review pass 11). The Phase 1 cors-proxy in #379 routes everything through a single global `/proxy` endpoint. That works cleanly for: Single-user mode: pod is at `/` so ...
X Description: Follow-up from #379 (Copilot review pass 11). The Phase 1 cors-proxy in #379 routes everything through a single global `/proxy` endpoint. That works cleanly for: Single-user mode: pod is at `/` so ...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/382
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"cors-proxy: support per-pod /\u003cpod>/proxy in path-based multi-pod mode","articleBody":"Follow-up from #379 (Copilot review pass 11).\n\nThe Phase 1 cors-proxy in #379 routes everything through a single global \\`/proxy\\` endpoint. That works cleanly for:\n\n- **Single-user mode**: pod is at \\`/\\` so \\`/proxy\\` is part of the (single) pod's URL space, gated by \\`/proxy.acl\\`.\n- **Subdomain mode**: each pod has its own origin (\\`alice.example.com\\`), so \\`/proxy\\` resolves into that pod's namespace per-host.\n\nIt does **not** work cleanly for path-based multi-pod (the default \\`createServer\\` mode without \\`--single-user\\` or \\`--subdomains\\`):\n\n- Pods live at \\`/\u003cpod>/...\\`\n- \\`/proxy\\` sits *outside* every pod\n- Pod owners can't write a \\`.acl\\` to control proxy access — only the server operator can (by writing root-level \\`/.acl\\` or \\`/proxy.acl\\`)\n- A genuine \\\"each user gets their own gated proxy\\\" deployment isn't possible\n\n## Options\n\n### A. Match \\`/\u003cpod>/proxy\\` in path-based mode\n\n\\`isCorsProxyRequest()\\` would need to extract the pod segment and recognize a tail of \\`/proxy\\`. The preHandler then runs WAC against \\`/\u003cpod>/proxy\\` so each pod owner controls their own proxy via their pod's ACL hierarchy.\n\nTrade-off: more code, more cases (the global \\`/proxy\\` fallback for non-pod-paths still needs a story), and slightly more surface for path-confusion bugs.\n\n### B. Document that \\`--cors-proxy\\` is single-user / subdomain only\n\nSmaller change; ship Phase 1 as-is and add a note to the README and \\`bin/jss.js\\` boot banner. Path-based-pod operators would need to wait for the per-pod work or run subdomain mode.\n\n### C. Make the route configurable\n\n\\`--cors-proxy-path /api/proxy\\` so operators can route however suits their deployment. Still leaves the per-pod ACL story unsolved in path-based mode.\n\n## Refs\n\n- #378 — feature\n- #379 — Phase 1 PR\n- Copilot review thread on #379 line 385: \\`isCorsProxyRequest()\\` only matches \\`/proxy\\`\n- \\`createPodStructure()\\` writes pod ACLs at \\`\\${podPath}.acl\\` — relevant context for option A","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-05-08T16:08:40Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/382"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:29764c03-2f5d-8574-aa57-c80a86db6ce7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF1A:43FF1:114D815:15E204A:6B038A35 |
| html-safe-nonce | 5c73f1dcf94d934b8b52fb63adf6ff796374055ea0414e96d180e57b93fe6e3a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjFBOjQzRkYxOjExNEQ4MTU6MTVFMjA0QTo2QjAzOEEzNSIsInZpc2l0b3JfaWQiOiIyMjQyODU0MDc3MjA3OTA2ODY5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d1309d492eadf6644770a050b6993caecce202700122b60f78a34a90b9a83443 |
| hovercard-subject-tag | issue:4407728143 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/382/issue_layout |
| twitter:image | https://opengraph.githubassets.com/90c8159f64fa116d1f4710fda2c46a6a5a580df145da64de943df6751d3655ac/JavaScriptSolidServer/JavaScriptSolidServer/issues/382 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/90c8159f64fa116d1f4710fda2c46a6a5a580df145da64de943df6751d3655ac/JavaScriptSolidServer/JavaScriptSolidServer/issues/382 |
| og:image:alt | Follow-up from #379 (Copilot review pass 11). The Phase 1 cors-proxy in #379 routes everything through a single global `/proxy` endpoint. That works cleanly for: Single-user mode: pod is at `/` so ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width