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