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"