derek-thomas HF staff commited on
Commit
9ab1d70
1 Parent(s): 79fc965

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -0
Dockerfile CHANGED
@@ -4,6 +4,8 @@ ENV ADMIN_USERNAME=admin
4
5
  ENV ADMIN_PASSWORD=password
6
 
 
 
7
  RUN echo "X_FRAME_OPTIONS = 'SAMEORIGIN'" > /doccano/local_settings.py
8
  RUN sed -i 's/"django.middleware.clickjacking.XFrameOptionsMiddleware",//g' /doccano/backend/config/settings/base.py
9
 
 
4
5
  ENV ADMIN_PASSWORD=password
6
 
7
+ # Otherwise it gets blocked by X-FRAME DENY
8
+ # https://github.com/doccano/doccano/blob/a2918f792e2a1d076c5f3abbbc7af7e3b2c11d0b/backend/config/settings/base.py#L85
9
  RUN echo "X_FRAME_OPTIONS = 'SAMEORIGIN'" > /doccano/local_settings.py
10
  RUN sed -i 's/"django.middleware.clickjacking.XFrameOptionsMiddleware",//g' /doccano/backend/config/settings/base.py
11