添加 :标签:Control,TcpClient,跨域,processor,Access,Add,Allow,httpHeaders,轻量级 From: https://blog.51cto.com/51souta/5805141
processor.httpHeaders.Add("Access-Control-Allow-Origin:*"); //(正确)
processor.httpHeaders.Add("Access-Control-Allow-Method", "POST,GET");即可
下面这种写法则不行。。。注意红色部分。。坑。。。语法不报错 ,,没效果
", "*"); //错误
processor.httpHeaders.Add("Access-Control-Allow-Method", "POST,GET");