+
95
-

swoole怎么设置http服务器的跨域请求

php

请问swoole怎么设置http服务器的跨域请求?


网友回复

+
15
-
<?php
//高性能HTTP服务器
$http = new Swoole\Http\Server("0.0.0.0", 9501);

$http->on("start", function ($server) {
    echo "Swoole http server is started at port9501\n";
});

$ht...

点击查看剩余70%

我知道答案,我要回答