Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

API docs: /api/media/missing and /api/media/sweep answer a cross-origin browser request with 403, as the upload does

Duarte Santosa839a4f0617e
diff --git a/api/openapi.yaml b/api/openapi.yaml
index 3cffddb10..1b8eb281f 100644
--- a/api/openapi.yaml
+++ b/api/openapi.yaml
@@ -1535,6 +1535,12 @@ paths:
application/json:
schema: { $ref: '#/components/schemas/Error' }
'401': { $ref: '#/components/responses/Unauthorized' }
+ '403':
+ description: A browser request from another origin (see *CSRF*).
+ content:
+ application/json:
+ schema: { $ref: '#/components/schemas/Error' }
+ example: { error: "cross-origin request refused" }
/api/media/sweep:
post:
@@ -1568,6 +1574,12 @@ paths:
freedBytes: { type: integer }
usage: { $ref: '#/components/schemas/MediaUsage' }
'401': { $ref: '#/components/responses/Unauthorized' }
+ '403':
+ description: A browser request from another origin (see *CSRF*).
+ content:
+ application/json:
+ schema: { $ref: '#/components/schemas/Error' }
+ example: { error: "cross-origin request refused" }
'429':
description: More than 10 sweeps this hour (`locked`).
headers: