This is because after logging in; we all fetch calls we make are authenticated fetch calls. When really we should only be making authenticated fetch calls to authenticated endpoints.
Instead what fetch needs to do is try unauthenticated fetch, and on 401 figure out what to do (i.e. should it try with authenticated fetch).
This is because after logging in; we all fetch calls we make are authenticated fetch calls. When really we should only be making authenticated fetch calls to authenticated endpoints.
Instead what fetch needs to do is try unauthenticated fetch, and on 401 figure out what to do (i.e. should it try with authenticated fetch).
We were just encountering this issue on comunica.dev - not sure if this is a new bug since https://github.com/comunica/comunica/pull/1056/files