Allow cors for translation
This commit is contained in:
@@ -279,6 +279,12 @@ server {
|
||||
error_page 404 = @dashboarderrorredirect;
|
||||
}
|
||||
|
||||
# Cross domain translation access for local development and login page
|
||||
location ~ ^/translation/ {
|
||||
root <%= sourceDir %>/dashboard/dist;
|
||||
add_header "Access-Control-Allow-Origin" "*";
|
||||
}
|
||||
|
||||
# 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" "*";
|
||||
|
||||
Reference in New Issue
Block a user