Closed rsnyman closed 3 years ago
Sorry, I'm just seeing now that you had put details in the issue, while I had only read the PR 😅 . Fair enough then... Still, that silenced exception didn't prevent the whole workflow to work for me, even with a React app on a different origin from the server's. If you're not in too much of a hurry, I'll look into this by the end of the week, since there's also been a recent feature request that I'd like to address soon.
Note: I'm currently looking into this.
If you choose the "code"
responseType
(aka server-side) and your server is on a different domain to your React app, the popup window throws aDOMException
"Blocked a frame with origin from access a cross-origin frame". This exception is then silenced in the popup window'spoll()
method.There needs to be a better way to handle cross-origin requests. This is usually done through posting messages between the parent and child windows.