From a38d6c3c602af5d2329393d80946aa724b6b167f Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 17 Jul 2021 18:09:19 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 4ff7bc7..2ac15d2 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -23,6 +23,12 @@ location __PATH__/ { tcp_nodelay on; } + # CORS + location ~ .(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$ { + add_header Access-Control-Allow-Origin "*"; + root /var/www/converse/dist/converse.js; + } + # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; }