Changeset a5caa73 in Klonkt for src/routes/audio.js
- Timestamp:
- 08/16/2026 05:10:36 PM (3 weeks ago)
- Branches:
- main
- Children:
- 1019a90
- Parents:
- 749605a
- File:
-
- 1 edited
-
src/routes/audio.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/audio.js
r749605a ra5caa73 147 147 res.setHeader('Content-Type', mime); 148 148 res.setHeader('Accept-Ranges', 'bytes'); 149 // Same lesson /media already learned: Helmet's default CORP is same-origin, 150 // and the browser then refuses to hand a cross-origin <audio> the bytes — 151 // the file arrives, the player stays silent. These URLs are precisely what 152 // we advertise in federated Audio objects (Funkwhale, the hub) to be played 153 // elsewhere; WHO may fetch is decided by the gate above, not by CORP. 154 res.setHeader('Cross-Origin-Resource-Policy', 'cross-origin'); 149 155 // Allow the browser to cache the file for a day so play/pause/replay 150 156 // doesn't re-fetch the whole stream every time. `private` keeps it out of
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)