This repository was archived by the owner on Nov 8, 2021. It is now read-only.
This repository was archived by the owner on Nov 8, 2021. It is now read-only.
How to get translations files from other server (fix cors error) #86
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels