* 请求是否带上cookie * @param {string} url 请求地址,必选参数。 * @param {boolean} proxy 是否需要加上代理,可选参数。 * @returns { boolean | undefined } 是否带上cookie
(url, proxy)
| 4414 | * @returns { boolean | undefined } 是否带上cookie |
| 4415 | */ |
| 4416 | isCredentail(url, proxy) { |
| 4417 | if(proxy || this.isIportalProxyServiceUrl(url) || CommonUtil.isInTheSameDomain(url)) { |
| 4418 | return true |
| 4419 | } |
| 4420 | return; |
| 4421 | } |
| 4422 | /** |
| 4423 | * url是否要带上代理 |
| 4424 | * @param {*} url 请求地址,必选参数。 |
no test coverage detected