diff --git a/src/nginxconfig.ejs b/src/nginxconfig.ejs index 8b2ac79b0..e4cb0566b 100644 --- a/src/nginxconfig.ejs +++ b/src/nginxconfig.ejs @@ -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" "*";