Hide 401 console.error in chrome dev tools getting 401 on fetch() call [duplicate]

Unfortunately, this cannot be done, as this type of message in the console is printed by chrome itself. Repressing this type of message has been debated for years, but the consensus seems to be that this message is desirable – see this discussion.

Just in case you’re interested: As per this comment, the reason we’re seeing this message is because the response to resource retrieval requests is evaluated, and messages are dispatched at the context level.

Essentially, the way chrome was written does not allow us to change this effect, and thus we have the error messages.

Leave a Comment