Access-Control-Allow-Origin header for GET /control-vectors
This commit is contained in:
parent
7b9e8726d1
commit
80508e1ef5
1 changed files with 1 additions and 0 deletions
|
@ -3184,6 +3184,7 @@ int main(int argc, char ** argv) {
|
|||
};
|
||||
|
||||
const auto handle_get_control_vectors = [&ctx_server](const httplib::Request & req, httplib::Response & res) {
|
||||
res.set_header("Access-Control-Allow-Origin", req.get_header_value("Origin"));
|
||||
json vectors = json::array();
|
||||
|
||||
for (const auto & vec : ctx_server.params.control_vectors) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue