请求头没有origin参数_为什么Firefox不总是发送POST请求的HTTP Origin标头?

bd96500e110b49cbb3cd949968f18be7.png

I'm exploring the idea of HTTP Origin checks as CSRF protection for Drupal at https://www.drupal.org/node/1803712

Now I was testing how the Origin header arrives with a POST request, but Firefox does not send the Origin header on the user login form submission. Chromium and Chrome work fine, they send the Origin header.

Firefox version is 36.0.1. I also tested with a clean Firefox installation because I thought maybe some of my browser plugins suppress the Origin header, but no luck - no Origin header there either.

Is there a documentation page that describes when Firefox sends the Origin header and when not?

解决方案

Is isn't implemented yet. There's a discussion here: https://bugzilla.mozilla.org/show_bug.cgi?id=446344


版权声明:本文为weixin_30695935原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。