Skip to content

Commit 576b51c

Browse files
ilonatommyCopilot
andcommitted
Restore --unsafely-treat-insecure-origin-as-secure flag for Blazor WASM Lighthouse scenario
Co-authored-by: Copilot <[email protected]>
1 parent 38eea61 commit 576b51c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/BenchmarksApps/Lighthouse/src/blazor-scenario.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ logReadyStateText(); // Required by the Crank job
2424

2525
const browser = await puppeteer.launch({
2626
headless: headless === 'true',
27-
args: ['--no-sandbox']
27+
args: [
28+
'--no-sandbox',
29+
// Treat the target URL as a secure origin so that crypto.subtle is available.
30+
// This is needed because Blazor WASM requires crypto.subtle, which is only
31+
// available in secure contexts (HTTPS or localhost).
32+
`--unsafely-treat-insecure-origin-as-secure=${targetBaseUrl}`,
33+
],
2834
});
2935

3036
const pageUrl = `${targetBaseUrl}/counter`;

0 commit comments

Comments
 (0)