Skip to content

Commit d75964c

Browse files
author
James Halliday
committed
try/catch around setting credentials
1 parent e748dc6 commit d75964c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/request.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ var Request = module.exports = function (xhr, params) {
1515
+ (params.path || '/')
1616
;
1717

18-
xhr.withCredentials = true;
18+
try { xhr.withCredentials = true }
19+
catch (e) {}
1920

2021
xhr.open(
2122
params.method || 'GET',

0 commit comments

Comments
 (0)