Skip to content

Commit

Permalink
Change from axios to fetch without redirect follow
Browse files Browse the repository at this point in the history
  • Loading branch information
frostyfan109 committed Oct 6, 2023
1 parent 2498bc8 commit 7c048cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/splash-screen.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ export const SplashScreenView = withWorkspaceAuthentication((props) => {
(async () => {
try {
await callWithRetry(async () => {
const res = await axios.get(decoded_url)
const res = await fetch(decoded_url, {
method: "GET",
redirect: "manual"
})
if (res.status === 200 && shouldCancel === false) {
setLoading(false)
} else {
Expand Down

0 comments on commit 7c048cb

Please sign in to comment.