Description of the issue
The first request to nexus viewer will always be a 500 as the localstorage is not available before the page hydrates.
Moving the obtaining of the token from local storage works to prevent this locally but completely breaks the nexus viewer on production and staging.
This needs investigation.
As a side point this doesnt effect the text viewer for unknown reasons.
When this is done the failOnStatusCodes can be removed from the cypress tests.