无限星辰工作室-客户无限互联网动力之源
标题:
Workerman websocket js调用跨域配置
[打印本页]
作者:
crx349
时间:
2019-1-15 18:14
标题:
Workerman websocket js调用跨域配置
onMessage函数内添加
\Workerman\Protocols\Http::header('Access-Control-Allow-Origin: *');
\Workerman\Protocols\Http::header('Access-Control-Allow-Headers: *');
\Workerman\Protocols\Http::header('Access-Control-Allow-Methods: GET, POST, PUT,OPTIONS');
复制代码
欢迎光临 无限星辰工作室-客户无限互联网动力之源 (https://xmspace.net/)
Powered by Discuz! X3.4