fix: force FramePlayer to WASM-only render mode; document CORS policy intent

This commit is contained in:
daniel-c-harvey
2026-06-07 17:16:49 -04:00
parent 465cb1ff6c
commit ceb0984262
2 changed files with 4 additions and 0 deletions
@@ -5,6 +5,7 @@
@page "/FramePlayer"
@layout EmbedLayout
@rendermode InteractiveWebAssembly
<AudioPlayerBar Fixed />
+3
View File
@@ -77,6 +77,9 @@ else
}
}
// CORS policy registered for hygiene and potential direct cross-origin API consumers.
// The FramePlayer embed use case does not require this: WASM inside a cross-site iframe
// fetches to the same deepdrft.com origin, so all API calls are same-origin.
app.UseCors("FramePlayerEmbedPolicy");
// For requests to /FramePlayer, remove any X-Frame-Options header and set a permissive