-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[browser] WasmAppHost should not force COOP/COEP when not using threading #109937
Comments
Tagging subscribers to 'arch-wasm': @lewing |
I guess it creates a problem when your application is also trying to call services on other domains ? What would be good fix ?
|
I think a CLI option would be best, driven by: Line 27 in 7f1f23a
Allowing COOP to be enabled when threading is used. |
In Blazor's version of DevServer we went with additional arg in |
if the solution is to be inserted in the project the line: then i think my app will never run on "azure static web app" again and i will have to stay on .net 8 at the moment. even using these settings in the file staticwebapp.config.json on azure has no effect, and even changing the app settings on azure will not work
|
@premiaware The other way around. If you need multithreading (not supported yet and enabled by As of now, the |
excuse me, I do not need
currently my app in .net 8 works correctly on azure, without WasmShellEnableThreads = true, Image not work, i must fix the image download from external domain. |
@premiaware this issue is only about starting the server using |
Description
When running an app using the WasmAppHost, the server forces COOP/COEP:
runtime/src/mono/wasm/host/WebServerStartup.cs
Lines 91 to 99 in f87428b
This causes issues for apps that don't need this particular feature.
Reproduction Steps
Create an browser wasm app, then add a
img
that references a non-compatible image.Expected behavior
The image displays when starting the app from VS.
Actual behavior
Regression?
Not sure.
Known Workarounds
None, since the headers are set unconditionally:
runtime/src/mono/wasm/host/BrowserHost.cs
Lines 124 to 131 in f87428b
Configuration
9.0.100
Other information
No response
The text was updated successfully, but these errors were encountered: