Skip to content

Commit 0944805

Browse files
committed
Revert "Access-Control-Allow-Origin header for GET /control-vectors"
This reverts commit 80508e1.
1 parent 80508e1 commit 0944805

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

examples/server/server.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3184,7 +3184,6 @@ int main(int argc, char ** argv) {
31843184
};
31853185

31863186
const auto handle_get_control_vectors = [&ctx_server](const httplib::Request & req, httplib::Response & res) {
3187-
res.set_header("Access-Control-Allow-Origin", req.get_header_value("Origin"));
31883187
json vectors = json::array();
31893188

31903189
for (const auto & vec : ctx_server.params.control_vectors) {

0 commit comments

Comments
 (0)