Allow proxy auth login pages to load the font from the dashboard
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user