We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Setting "headers" to null while making a request leads to an error with no trace.
GM_xmlhttpRequest({ url: "https://example.org", method: "GET", headers: null, // Error: An unexpected apiScript error occurred onload: function(response) { console.log(response) } })
This doesn't happen in ViolentMonkey (didn't test with TamperMonkey), and yes, scripts do set headers to null (4chan-X).
The text was updated successfully, but these errors were encountered:
GM|TM|VM also expect xmlHttpRequest headers to be an object.
xmlHttpRequest
object
Although null is also an object, it will cause an error with Object.keys(null) in FireMonkey.
null
Object.keys(null)
I will add a check to prevent error when it is set to null.
Fixed for v2.72
Sorry, something went wrong.
No branches or pull requests
Setting "headers" to null while making a request leads to an error with no trace.
This doesn't happen in ViolentMonkey (didn't test with TamperMonkey), and yes, scripts do set headers to null (4chan-X).
The text was updated successfully, but these errors were encountered: