Add withCredentials PR from mwq27

...alse. Assertion added to the test-request-methods.js tests.