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; }