My machine can no longer make any HTTP requests with the OPTIONS verb. This happens whether I try it curl, postman, or ajax.
我的机器无法再使用OPTIONS动词发出任何HTTP请求。无论我尝试卷曲,邮递员还是ajax,都会发生这种情况。
curl -i -X OPTIONS http://www.google.com returns curl: (52) Empty reply from server
curl -i -X选项http://www.google.com返回curl:(52)来自服务器的空回复
It should return a long string containing a 405 error code.
它应该返回一个包含405错误代码的长字符串。
I suspect that this is related to the Mavericks "upgrade" I did earlier this week. I only have one mac (my dev machine) with Mavericks. Other macs are Mountain Lion and they don't have this problem.
我怀疑这与我本周早些时候做过的小牛“升级”有关。我只有一个Mac(我的开发机器)与小牛队。其他mac是Mountain Lion,他们没有这个问题。
Can anyone else with Mavericks confirm whether or not they have this problem too?
小牛队的其他人可以确认他们是否也有这个问题吗?
If this is Mavericks related, anyone know of a fix or workaround?
如果这与Mavericks有关,那么任何人都知道修复或解决方法吗?
1 个解决方案
#1
2
Turns out that it wasn't Mavericks related at all. Cisco AnyConnect has a security module running behind the scenes even when you're not VPNed into anything. It was blocking my OPTIONS verb requests. I was able to make these calls after uninstalling.
事实证明,根本不是小牛队有关系。 Cisco AnyConnect有一个安全模块在幕后运行,即使您没有连接到任何东西。它阻止了我的OPTIONS动词请求。卸载后我能够进行这些调用。
Re-installing with Web Security turned off should prevent it from happening. While I was uninstalling I did notice that there was a web security uninstall script in /opt/cisco/vpn/bin but I already committed to taking the whole app off my machine. Simply running that script could have done it too.
关闭Web安全性重新安装应该可以防止它发生。当我卸载时,我注意到/ opt / cisco / vpn / bin中有一个Web安全卸载脚本,但我已经承诺将整个应用程序从我的机器上取下。简单地运行该脚本也可以完成它。
I must give credit to Ben Nadel. It was his blog post that helped me fix this issue.
我必须赞扬Ben Nadel。他的博客文章帮助我解决了这个问题。
#1
2
Turns out that it wasn't Mavericks related at all. Cisco AnyConnect has a security module running behind the scenes even when you're not VPNed into anything. It was blocking my OPTIONS verb requests. I was able to make these calls after uninstalling.
事实证明,根本不是小牛队有关系。 Cisco AnyConnect有一个安全模块在幕后运行,即使您没有连接到任何东西。它阻止了我的OPTIONS动词请求。卸载后我能够进行这些调用。
Re-installing with Web Security turned off should prevent it from happening. While I was uninstalling I did notice that there was a web security uninstall script in /opt/cisco/vpn/bin but I already committed to taking the whole app off my machine. Simply running that script could have done it too.
关闭Web安全性重新安装应该可以防止它发生。当我卸载时,我注意到/ opt / cisco / vpn / bin中有一个Web安全卸载脚本,但我已经承诺将整个应用程序从我的机器上取下。简单地运行该脚本也可以完成它。
I must give credit to Ben Nadel. It was his blog post that helped me fix this issue.
我必须赞扬Ben Nadel。他的博客文章帮助我解决了这个问题。