Skip to content

Commit 8b21a42

Browse files
committed
Add security warning and browser launch instructions for WebGPU tutorial
1 parent 4d280d2 commit 8b21a42

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tutorials/heat-conduction-2d-fin-webgpu.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,17 @@ <h1>Heat Conduction in a 2D Fin Tutorial (WebGPU)</h1>
8989
</p>
9090
<p>
9191
<strong>⚠️ Important:</strong> This feature is experimental and requires a browser that supports WebGPU.
92+
<p>
93+
Also, due to security restrictions, this example requires launching the
94+
browser with reduced security settings, e.g.:
95+
</p>
96+
<pre style="background-color: #f8f9fa; padding: 8px; border-radius: 4px; overflow-x: auto">
97+
start chrome --disable-web-security --user-data-dir="C:\tmp\chrome-cors" --disable-site-isolation-trials</pre>
98+
<p>
99+
These flags temporarily disable CORS restrictions that normally block a web worker from loading
100+
scripts or data when running from local files. For production applications, proper CORS headers should
101+
be configured on your server.
102+
</p>
92103
</p>
93104
</div>
94105

0 commit comments

Comments
 (0)