-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Add option to serve WebAssembly app with multithreading #54062
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
endpointBuilder.RequestDelegate = httpContext => | ||
{ | ||
httpContext.Response.Headers["Cross-Origin-Embedder-Policy"] = "require-corp"; | ||
httpContext.Response.Headers["Cross-Origin-Opener-Policy"] = "same-origin"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be same-origin-allow-popups
? If we are not having a way to configure this, we should at least be as lax as possible while enabling the feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, unfortunately that's not enough for SharedArrayBuffer
to be enabled. It has to be same-origin
.
|
||
namespace Microsoft.AspNetCore.Components.E2ETest.Tests; | ||
|
||
public class ThreadingHostedAppTest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth having a dev server test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There already is one - see ThreadingAppTest
.
For detailed information, see the API review issue at #54071
PR review notes
The product logic change is very small - it's just the changes in these two files:
Everything else is tests.
When merged, we can also mark #53723 as
test-fixed
.