Added a super simple CORS header as default for all endpoints.
This commit is contained in:
parent
bed308c69c
commit
342604bb81
1 changed files with 2 additions and 0 deletions
|
@ -674,6 +674,8 @@ int main(int argc, char **argv)
|
|||
|
||||
Server svr;
|
||||
|
||||
svr.set_default_headers({ {"Access-Control-Allow-Origin", "*"} });
|
||||
|
||||
svr.Get("/", [](const Request &, Response &res)
|
||||
{ res.set_content("<h1>llama.cpp server works</h1>", "text/html"); });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue