Skip to content
Discussion options

You must be logged in to vote

You're not missing anything weird, it's a backwards-compat call, and it's explained in the PR that added the flag: #25655 (server: add --cors-* options).

Why * is still the default

Before that PR, llama-server always sent Access-Control-Allow-Origin: * and there was no way to turn it off. The reasoning back then was that the endpoints were stateless and read-only and didn't expose anything sensitive by default. The only real risk was DoS, which isn't treated as a vulnerability under llama.cpp's security policy.

When the flags were added, they kept the relaxed profile as the default on purpose ("no breaking changes"), and added the startup warning instead. Lots of setups depend on it: brow…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@laythea
Comment options

Answer selected by laythea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants