WASM Multithreading and Authentication #16868
Unanswered
topper-man
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We're creating a Webassembly-App and want to add MSAL-Authentication as well as Multithreading.
To enable multithreading we've added some headers to our app pages as it is described in the documentation:
https://platform.uno/docs/articles/external/uno.wasm.bootstrap/doc/features-threading.html
->
Cross-Origin-Embedder-Policy: require-corp
Cross-Origin-Opener-Policy: same-origin
Now when we want to add authentication to the app as well, the second header "Cross-Origin-Opener-Policy: same-origin" leads to the problem that the login dialog doesn't close after the user is selected successfully. After debugging the uno-ui-msal.js file I got the impression that the reference from the app window to the login window gets lost. In the documentation (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Opener-Policy) I found that there is also a value "Cross-Origin-Opener-Policy: same-origin-allow-popups". But that didn't help ...
When I remove the header everything is working fine, so all the other settings with the redirect-URI, etc. should be okay.
Is this header still needed for multithreading? When I create a solution from the UNO template I cant't find this setting when enabling WASM-Multithreading.
Any ideas?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions