mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 17:26:41 +02:00
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:
parent
807c5da26e
commit
3f5c17adbc
2 changed files with 2 additions and 0 deletions
|
|
@ -63,6 +63,7 @@ function createPlayerStore() {
|
|||
|
||||
if (typeof window !== 'undefined') {
|
||||
audio = new Audio();
|
||||
audio.crossOrigin = 'anonymous';
|
||||
audio.addEventListener('timeupdate', () => {
|
||||
state.currentTime = audio!.currentTime;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue