From 20a15cd6d280e4ae2e73865f398b57a889f7b784 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 12 Feb 2021 10:10:21 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 4ff7bc7..69926a9 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -23,6 +23,13 @@ location __PATH__/ { tcp_nodelay on; } + # CORS + more_set_headers "Access-Control-Allow-Origin: '*'"; + more_set_headers "Access-Control-Max-Age 3600"; + more_set_headers "Access-Control-Expose-Headers Content-Length"; + more_set_headers "Access-Control-Allow-Headers Range"; + more_set_headers "Accept-Ranges bytes"; + # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; }