fix(mukke): fix audio CORS for MinIO presigned URLs

Set crossOrigin='anonymous' on audio element for Web Audio API
compatibility with cross-origin sources. Add MINIO_API_CORS_ALLOW_ORIGIN
to allow browser requests from all web apps.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-23 09:51:17 +01:00
parent 807c5da26e
commit 3f5c17adbc
2 changed files with 2 additions and 0 deletions

View file

@ -63,6 +63,7 @@ function createPlayerStore() {
if (typeof window !== 'undefined') {
audio = new Audio();
audio.crossOrigin = 'anonymous';
audio.addEventListener('timeupdate', () => {
state.currentTime = audio!.currentTime;
});