Spaces:
Running
Running
Add CORS option
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
FROM ghcr.io/developmentseed/titiler:latest
|
2 |
|
|
|
|
|
|
|
|
|
3 |
EXPOSE 7860
|
4 |
|
5 |
CMD ["uvicorn", "titiler.application.main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]
|
|
|
1 |
FROM ghcr.io/developmentseed/titiler:latest
|
2 |
|
3 |
+
# Optional: Set CORS options (defaults to "*", so only needed if customizing)
|
4 |
+
ENV TITILER_API_CORS_ORIGINS=*
|
5 |
+
ENV TITILER_API_CORS_ALLOW_METHODS=GET,POST,OPTIONS
|
6 |
+
|
7 |
EXPOSE 7860
|
8 |
|
9 |
CMD ["uvicorn", "titiler.application.main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]
|