Added .withCredentials to CoreOptions

Although not specified on the main page, as per 

https://github.com/request/request/blob/b12a6245d9acdb1e13c6486d427801e123fdafae/tests/browser/test.js we can see that this is part of the request module. 

More practically: local testing shows adding the {withCredentials:false} option allows us to create a request that accepts an "*" value for the Access-Control-Allow-Origin header.
This commit is contained in:
yairm210
2017-06-26 13:15:08 +03:00
committed by GitHub
parent 0020fcee62
commit 787dc502fa
+1
View File
@@ -143,6 +143,7 @@ declare namespace request {
gzip?: boolean;
preambleCRLF?: boolean;
postambleCRLF?: boolean;
withCredentials?: boolean;
key?: Buffer;
cert?: Buffer;
passphrase?: string;