Fix CSRF error
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
c9b2d5bd8d
commit
d3682368b4
|
@ -6,7 +6,7 @@ RUN npm install && \
|
|||
|
||||
FROM python:3.10.9-alpine
|
||||
|
||||
ENV VERSION_NUMBER 0.1.2
|
||||
ENV VERSION_NUMBER 0.1.0-59-gc9b2d5b
|
||||
ENV PROD 1
|
||||
|
||||
RUN apk add \
|
||||
|
@ -28,4 +28,4 @@ RUN pip install --no-cache-dir poetry
|
|||
RUN poetry install --without dev
|
||||
|
||||
EXPOSE 8000
|
||||
ENTRYPOINT [ "/entrypoint.sh" ]
|
||||
CMD [ "/entrypoint.sh" ]
|
|
@ -145,7 +145,8 @@ LOGGING = {
|
|||
},
|
||||
}
|
||||
|
||||
CSRF_TRUSTED_ORIGINS = []
|
||||
|
||||
if os.environ.get("PROD"):
|
||||
CSRF_TRUSTED_ORIGINS.append(os.environ.get("CSRF_TRUSTED_ORIGINS"))
|
||||
_csrf_trusted_origins = os.environ.get("CSRF_TRUSTED_ORIGINS")
|
||||
if _csrf_trusted_origins:
|
||||
CSRF_TRUSTED_ORIGINS = _csrf_trusted_origins.split(",")
|
||||
else:
|
||||
CSRF_TRUSTED_ORIGINS = []
|
||||
|
|
Loading…
Reference in New Issue