Handle HTTP 302 response from proxy in angularjs

前端 未结 5 1560
迷失自我
迷失自我 2020-11-28 06:19

I have a reverse proxy that checks global authentication for several applications. When the user is disconnected but still trying to use my application, the proxy sends a 30

5条回答
  •  醉话见心
    2020-11-28 06:49

    Just for reference in case anyone still looks at this: you can also make the call that is expected to return a 302 form an Iframe. That way you stay on the page, and you can communicate with https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage

提交回复
热议问题