(req: HttpRequest<any>)
| 482 | function noop(): void {} |
| 483 | |
| 484 | function warningOptionsMessage(req: HttpRequest<any>) { |
| 485 | if (req.credentials && req.withCredentials) { |
| 486 | console.warn( |
| 487 | formatRuntimeError( |
| 488 | RuntimeErrorCode.WITH_CREDENTIALS_OVERRIDES_EXPLICIT_CREDENTIALS, |
| 489 | `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.`, |
| 490 | ), |
| 491 | ); |
| 492 | } |
| 493 | } |
| 494 | |
| 495 | /** |
| 496 | * Zone.js treats a rejected promise that has not yet been awaited |
no test coverage detected