Skip to content

Add MIT license and EXTRA_ORIGINS secret for private origins - #1

Merged
alcor merged 1 commit into
mainfrom
private-origins
Nov 28, 2026
Merged

alcor merged 1 commit into
mainfrom
private-origins

Conversation

@alcor

@alcor alcor commented Nov 28, 2026

Copy link
Copy Markdown
Member

Adds an optional EXTRA_ORIGINS Worker secret: JSON mapping a configured product ID to more allowed origins, merged into PRODUCTS at request time. The multiplexer board's tailnet origin moves there, so it stays out of this public repo's wrangler.jsonc.

  • Unset, malformed, or non-object values add no origins.
  • Unknown product IDs are ignored; non-string entries are dropped.
  • test/products.test.ts covers the four cases above.
  • Adds the MIT LICENSE.

The secret has to exist on the Worker before the production deploy for the board origin to pass CORS. Code deployed before this change ignores it.

🤖 Generated with Claude Code

The repository is now public. Origins that shouldn't appear in the checked-in
config, such as a tailnet hostname, go in the optional EXTRA_ORIGINS Worker
secret: JSON mapping a configured product ID to more allowed origins.
@alcor
alcor merged commit fe6ba44 into main Nov 28, 2026
2 checks passed
@alcor
alcor deleted the private-origins branch November 28, 2026 20:01
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.

1 participant