-
Notifications
You must be signed in to change notification settings - Fork 10k
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
For Blazor WebAssembly (hosted), consider enabling cross-origin isolation by default #42114
Comments
@eerhardt also pointed out that once such headers are enabled, "any 3rd party stuff - like ads, payment, auth, etc - stops working". |
For more information on this functionality - see dotnet/runtime#40074. If
|
Thanks for contacting us. We're moving this issue to the |
@SteveSandersonMS took a quick look at this yesterday. My findings are as follows:
|
Is this still planned on making it for 7.0-rc1? |
@eerhardt This issue was to track "figuring out a plan" (i.e., consider) rather than a confirmed intention to enable this by default. We've had a bunch of discussions and considered the pros/cons of different approaches. The key points are:
|
Closing as the "considering" is done and we have a new issue tracking the work item |
Some of the runtime's new/proposed functionality - native crypto, and multithreading - rely on
SharedArrayBuffer
. However, as per https://developer.chrome.com/blog/enabling-shared-array-buffer/, Chromium is soon going to start limiting this feature to be available only for cross-origin isolated sites. This will take effect as of Chromium v106.That is, the site would need to be served with these headers:
We can't do anything to enable this by default for standalone Blazor WebAssembly, as that's just a set of static files, and the HTTP headers are controlled by whatever is serving those files. This might lead to some functional problems for people hosting on GitHub pages or other places where the headers can't be controlled.
For hosted-on-ASP.NET Core sites, is there a way we could enable these headers by default? And would it be safe and reasonable to do so?
The text was updated successfully, but these errors were encountered: