From 0523e8ba1063d88a9aaad3b56d69c8170340ddd3 Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 7 Nov 2024 23:57:38 -0100 Subject: [PATCH] Add COOP and COEP headers to nginx to try to fix shared buffer not working --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index faaf1f1..f86a1a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,8 @@ RUN echo -e " server {\n" \ " root /app;\n" \ " index index.html;\n" \ " try_files \$uri \$uri/ /index.html;\n" \ + " add_header 'Cross-Origin-Embedder-Policy' 'require-corp';\n" \ + " add_header 'Cross-Origin-Opener-Policy' 'same-origin';\n" \ " }\n" \ " }\n" \ > /etc/nginx/conf.d/datalab.conf