When getting translations from other server like this
export function HttpLoaderFactory(http: HttpClient) {
return new TranslateHttpLoader(http, 'http://www.example.com/assets/i18n/', '/translations.json');
}
I get the following cors error:
Access to XMLHttpRequest at 'http://www.example.com/assets/i18n/en_US/translations.json' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Can anyone help with that? Thanks in advance.