Claude
commited on
fix(docker): set explicit FRONTEND_ORIGIN env var (BUG-009)
Browse filesAdd FRONTEND_ORIGIN environment variable to Dockerfile as a backup
to the CORS regex, making the allowed origin explicit:
https://vibecodermcswaggins-stroke-viewer-frontend.hf.space
- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -75,6 +75,9 @@ EXPOSE 7860
|
|
| 75 |
# Reset ENTRYPOINT from base image
|
| 76 |
ENTRYPOINT []
|
| 77 |
|
|
|
|
|
|
|
|
|
|
| 78 |
# Run FastAPI with uvicorn (module path: stroke_deepisles_demo.api.main:app)
|
| 79 |
# --proxy-headers: Trust X-Forwarded-Proto from HF Spaces proxy (ensures https:// in request.base_url)
|
| 80 |
CMD ["uvicorn", "stroke_deepisles_demo.api.main:app", "--host", "0.0.0.0", "--port", "7860", "--proxy-headers"]
|
|
|
|
| 75 |
# Reset ENTRYPOINT from base image
|
| 76 |
ENTRYPOINT []
|
| 77 |
|
| 78 |
+
# Explicit frontend origin for CORS (backup to regex)
|
| 79 |
+
ENV FRONTEND_ORIGIN=https://vibecodermcswaggins-stroke-viewer-frontend.hf.space
|
| 80 |
+
|
| 81 |
# Run FastAPI with uvicorn (module path: stroke_deepisles_demo.api.main:app)
|
| 82 |
# --proxy-headers: Trust X-Forwarded-Proto from HF Spaces proxy (ensures https:// in request.base_url)
|
| 83 |
CMD ["uvicorn", "stroke_deepisles_demo.api.main:app", "--host", "0.0.0.0", "--port", "7860", "--proxy-headers"]
|