pronebel / think-cors

[已过期]thinkjs-Middleware-cors
MIT License
12 stars 2 forks source link

添加后会与websocket冲突,导致websocket通信失败 #6

Closed mrz9 closed 7 years ago

mrz9 commented 7 years ago

加入websocket后,目前使用socket.io版本,放心如果开启了think-cors就会导致websocket通信不成功,把hook.js里面的request_begin:['cors']干掉后,websocket才能正常通信

pronebel commented 7 years ago

请参考这个解决, https://github.com/pronebel/think-cors/issues/4

最新的版本里支持跳过某些规则的URL