(req: HttpRequest<any>)
| 426 | function noop(): void {} |
| 427 | |
| 428 | function warningOptionsMessage(req: HttpRequest<any>) { |
| 429 | if (req.credentials && req.withCredentials) { |
| 430 | console.warn( |
| 431 | formatRuntimeError( |
| 432 | RuntimeErrorCode.WITH_CREDENTIALS_OVERRIDES_EXPLICIT_CREDENTIALS, |
| 433 | `Angular detected that a \`HttpClient\` request has both \`withCredentials: true\` and \`credentials: '${req.credentials}'\` options. The \`withCredentials\` option is overriding the explicit \`credentials\` setting to 'include'. Consider removing \`withCredentials\` and using \`credentials: '${req.credentials}'\` directly for clarity.`, |
| 434 | ), |
| 435 | ); |
| 436 | } |
| 437 | } |
| 438 | |
| 439 | /** |
| 440 | * Zone.js treats a rejected promise that has not yet been awaited |
no test coverage detected
searching dependent graphs…