-
-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Attempt to set a forbidden header was denied: Referer" warning with Firefox #9298
Comments
@firewave thank you for reporting this issue. Do you know which firefox version startet to complain about this? As per https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name it seems that setting the referer programmatically is forbidden. The code which tries this is here: https://github.com/qooxdoo/qooxdoo/blob/master/framework/source/class/qx/io/remote/transport/XmlHttp.js#L344-L356 |
Here is a fiddle which tries to set the referer in the xhr header: http://jsfiddle.net/patridge/h4Lvp/ It still may succeed on IE 11, but the question is if we still want to have this non-conforming code in. I'd propose to remove https://github.com/qooxdoo/qooxdoo/blob/master/framework/source/class/qx/io/remote/transport/XmlHttp.js#L344-L356 completely. |
Created PR #9299 |
qx.io.remote.Request.send() tries to set the "Referer" header which triggers a warning in the JavaScript console in Firefox.
There was issue #1214 regarding the same message in Safari including some discussion about this behavior.
I am using Firefox 52 64-bit on Windows 10 and qooxdoo 5.0.2.
The text was updated successfully, but these errors were encountered: