Allow proxy auth login pages to load the font from the dashboard

This commit is contained in:
Johannes Zellner
2023-01-09 22:53:35 +01:00
parent 183d4c026f
commit 0a34ace16a

View File

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