Skip to content

Commit 320462f

Browse files
committed
fix(XHR): do nothing instead of throwing a DOMException when setting xhr.withCredentials
Socket.IO would die in the middle between `xhr.open` and `xhr.send`
1 parent a001cca commit 320462f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pythonmonkey/builtin_modules/XMLHttpRequest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class XMLHttpRequest extends XMLHttpRequestEventTarget
182182
}
183183
set withCredentials(flag)
184184
{
185-
throw new DOMException('xhr.withCredentials is not supported in PythonMonkey.', 'InvalidAccessError');
185+
// do nothing
186186
}
187187

188188
/**

0 commit comments

Comments
 (0)