From 85d4ff6afe9ef81c16ba20ef4479cbda1b2ec8c4 Mon Sep 17 00:00:00 2001 From: Matt Isenhower Date: Tue, 20 Mar 2018 12:07:58 -0700 Subject: [PATCH] Add a permissive CORS header on the assets directory --- docker/nginx/conf.d/default.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docker/nginx/conf.d/default.conf b/docker/nginx/conf.d/default.conf index a49aae8..b6c085a 100644 --- a/docker/nginx/conf.d/default.conf +++ b/docker/nginx/conf.d/default.conf @@ -17,6 +17,11 @@ server { add_header Cache-Control no-cache; } + # CORS (for third-party integrations) + location /assets/ { + add_header Access-Control-Allow-Origin *; + } + # Block access to the file used for screenshots location = /screenshots.html { internal;