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;
});

View file

@ -59,6 +59,7 @@ services:
environment:
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY:-minioadmin}
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY:-minioadmin}
MINIO_API_CORS_ALLOW_ORIGIN: https://mukke.mana.how,https://mana.how,https://picture.mana.how,https://storage.mana.how,https://planta.mana.how,https://contacts.mana.how,https://chat.mana.how,https://nutriphi.mana.how,https://photos.mana.how
volumes:
- /Volumes/ManaData/minio:/data
ports: