diff --git a/ui/src/app/App.js b/ui/src/app/App.js index db7a0dbbd..b9bb95ea6 100644 --- a/ui/src/app/App.js +++ b/ui/src/app/App.js @@ -30,11 +30,19 @@ import { Contention } from './metadata/contention/ContentionContext'; function App() { const httpOptions = { + redirect: 'manual', interceptors: { request: async ({options, url, path, route}) => { options.headers['X-XSRF-TOKEN'] = get_cookie('XSRF-TOKEN'); return options; + }, + response: async ({response}) => { + if (response.type === "opaqueredirect") { + window.location.reload(); + } else { + return response; + } } } };