andrewrreed HF staff commited on
Commit
3acc46a
·
1 Parent(s): 64352a6

modify csp headers to avoid Content Securty Policy bug

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -7,7 +7,11 @@ RUN apk update && apk add --no-cache \
7
  postgresql \
8
  postgresql-contrib \
9
  net-tools \
10
- iproute2
 
 
 
 
11
 
12
  # Copy and set up the wrapper script
13
  COPY docker-entrypoint-wrapper.sh /docker-entrypoint-wrapper.sh
 
7
  postgresql \
8
  postgresql-contrib \
9
  net-tools \
10
+ iproute2 \
11
+ sed
12
+
13
+ # Modify the CSP headers in next.config.mjs to remove frame-ancestors restriction
14
+ RUN sed -i "/frame-ancestors 'none';/d" ./web/next.config.mjs
15
 
16
  # Copy and set up the wrapper script
17
  COPY docker-entrypoint-wrapper.sh /docker-entrypoint-wrapper.sh