Skip to content

fix(server): allow direct browser MCP connections with CORS - #276

Open
LeoMcA wants to merge 2 commits into
mainfrom
permissive-cors
Open

LeoMcA wants to merge 2 commits into
mainfrom
permissive-cors

Conversation

@LeoMcA

@LeoMcA LeoMcA commented Oct 6, 2026

Copy link
Copy Markdown
Member

Fixes #201

Tested locally with llama: before making the changes, even when running locally, the browser requests were blocked by CORS. Afterwards, they work:

Screenshot From 2026-10-06 14-34-19

LeoMcA added 2 commits October 6, 2026 13:02
Stops Express logging stack traces for errors the tests trigger on purpose.
@LeoMcA
LeoMcA requested review from a team and mdn-bot as code owners October 6, 2026 13:37
@LeoMcA
LeoMcA requested a review from caugner October 6, 2026 13:37
Comment thread package.json
Comment on lines +14 to +15
"test": "NODE_ENV=test node --test --experimental-test-coverage --test-coverage-lines 100 --test-coverage-exclude 'test/**/*' 'test/**/*.test.js'",
"test:watch": "NODE_ENV=test node --test --watch 'test/**/*.test.js'",

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.

nit: Let's add cross-env as devDependency to support Windows!?

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.

llama.cpp webui support

2 participants