(req: HttpRequest<any>)
| 447 | function noop(): void {} |
| 448 | |
| 449 | function warningOptionsMessage(req: HttpRequest<any>) { |
| 450 | if (req.credentials && req.withCredentials) { |
| 451 | console.warn( |
| 452 | formatRuntimeError( |
| 453 | RuntimeErrorCode.WITH_CREDENTIALS_OVERRIDES_EXPLICIT_CREDENTIALS, |
| 454 | `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.`, |
| 455 | ), |
| 456 | ); |
| 457 | } |
| 458 | } |
| 459 | |
| 460 | /** |
| 461 | * Zone.js treats a rejected promise that has not yet been awaited |
no test coverage detected