giswqs commited on
Commit
1c8316a
·
1 Parent(s): fe11871

Add CORS option

Browse files
Files changed (1) hide show
  1. 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"]