We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaad91f commit 1ace2acCopy full SHA for 1ace2ac
src/Components/WebAssembly/DevServer/src/Server/Startup.cs
@@ -42,7 +42,7 @@ public static void Configure(IApplicationBuilder app, IConfiguration configurati
42
else if (applyCopHeaders && ctx.Request.Path.StartsWithSegments("/_framework") && !ctx.Request.Path.StartsWithSegments("/_framework/blazor.server.js") && !ctx.Request.Path.StartsWithSegments("/_framework/blazor.web.js"))
43
{
44
var fileExtension = Path.GetExtension(ctx.Request.Path);
45
- if (string.Equals(fileExtension, ".js", StringComparison.OrdinalIgnoreCase))
+ if (string.Equals(fileExtension, ".js", StringComparison.OrdinalIgnoreCase) || string.Equals(fileExtension, ".mjs", StringComparison.OrdinalIgnoreCase))
46
47
// Browser multi-threaded runtime requires cross-origin policy headers to enable SharedArrayBuffer.
48
ApplyCrossOriginPolicyHeaders(ctx);
0 commit comments