Skip to content
Snippets Groups Projects
Commit 79f28acf authored by Tore Clemetsen's avatar Tore Clemetsen
Browse files

Update dockerfile.client to disable CORS and Xsrf protection. CORS can't be...

Update dockerfile.client to disable CORS and Xsrf protection. CORS can't be enabled as the list of allowed origins is hard-coded in streamlit. Xsrf protection can't be enabled as it requires CORS to be enabled.
Update dockerfile.client to enable WebSocket compression.
parent cb99d4f1
No related branches found
No related tags found
1 merge request!1Update dockerfile.client to disable CORS and Xsrf protection. CORS can't be...
......@@ -6,7 +6,7 @@ WORKDIR /app
COPY . .
RUN pip install -r requirements.txt
EXPOSE 8501
ENTRYPOINT ["streamlit", "run", "fair_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
ENTRYPOINT ["streamlit", "run", "fair_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false", "--server.enableWebsocketCompression=true"]
# app/Dockerfile
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment