feat: Enhance iOS Safari audio streaming support with optimizations and specific headers
All checks were successful
Build and Push Docker Image / docker (push) Successful in 9s
All checks were successful
Build and Push Docker Image / docker (push) Successful in 9s
This commit is contained in:
@@ -208,5 +208,11 @@ export class AudioStreamingService {
|
||||
// The token system already provides security
|
||||
ctx.response.headers.set('Cache-Control', 'public, max-age=3600');
|
||||
ctx.response.headers.set('Accept-Ranges', 'bytes');
|
||||
|
||||
// iOS Safari specific headers to improve streaming
|
||||
ctx.response.headers.set('Access-Control-Allow-Origin', '*');
|
||||
ctx.response.headers.set('Access-Control-Allow-Methods', 'GET, HEAD, OPTIONS');
|
||||
ctx.response.headers.set('Access-Control-Allow-Headers', 'Range');
|
||||
ctx.response.headers.set('Access-Control-Expose-Headers', 'Content-Length, Content-Range, Accept-Ranges');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user