Merge remote-tracking branch 'origin/main' into codex/usage-v4-client

This commit is contained in:
Paul Nothaft
2026-09-06 21:18:58 +02:00
11 changed files with 635 additions and 12 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "picpeak-backend",
"version": "3.126.1-beta.0",
"version": "3.126.2-beta.0",
"description": "Backend for PicPeak event photo sharing platform",
"main": "server.js",
"engines": {
+6 -1
View File
@@ -239,7 +239,12 @@ const corsOptions = {
// deployments can read the server's chosen download filename. Used
// by the gallery/admin download flows to honour the #493 "original
// camera filename" toggle on individual photo downloads (#507).
exposedHeaders: ['Content-Disposition'],
//
// Retry-After is not CORS-safelisted either. AuthenticatedImage reads it
// off a 429 to wait out the rate-limit window before retrying a thumbnail
// fetch; without it a split-origin deployment would spend its retry budget
// inside the window and leave the tile blank after the limit had lifted.
exposedHeaders: ['Content-Disposition', 'Retry-After'],
};
// Only attach CORS to API endpoints, not static assets