From e50cd9757b35eb75aac6b3471a9ff1e76f7fb1be Mon Sep 17 00:00:00 2001 From: nobody Date: Wed, 3 Dec 2025 10:37:44 -0800 Subject: [PATCH] fix: port 5000 conflicts with AirPlay on macOS Use port 15000 for the default development port. If you ever cloned the repo on Mac, ran the demo, and saw the models list would never load, or saw 403 errors in browser console. Check the Server headers. Good chances are the request went to AirPlay service which is also listening on port 5000. --- api/salience/__init__.py | 2 +- api/smoke-test.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/salience/__init__.py b/api/salience/__init__.py index a4226a3..3ea743a 100644 --- a/api/salience/__init__.py +++ b/api/salience/__init__.py @@ -15,7 +15,7 @@ from collections import deque import threading app = Flask(__name__) -CORS(app, origins=["http://localhost:5173"]) +CORS(app, origins=["http://localhost:5173", "http://127.0.0.1:5173"]) # Thread-safe stats tracker for this worker process class StatsTracker: diff --git a/api/smoke-test.sh b/api/smoke-test.sh index cdca90a..a4e5ff6 100755 --- a/api/smoke-test.sh +++ b/api/smoke-test.sh @@ -1,5 +1,5 @@ #!/bin/sh -host=http://127.0.0.1:5000 +host=http://127.0.0.1:15000 echo "=== /models ===" curl -s "$host/models"