diff --git a/src/nginxconfig.ejs b/src/nginxconfig.ejs index ba32fcb3f..d4731a4f3 100644 --- a/src/nginxconfig.ejs +++ b/src/nginxconfig.ejs @@ -260,6 +260,11 @@ server { root <%= sourceDir %>/dashboard/dist; index index.html index.htm; } + + # Cross domain webfont access for proxy auth login page https://github.com/h5bp/server-configs/issues/85 + location ~* \.(ttf|ttc|otf|eot|woff|font.css)$ { + add_header "Access-Control-Allow-Origin" "*"; + } <% } else if ( endpoint === 'app' ) { %> location = /appstatus.html { root /home/yellowtent/box/dashboard/dist;