mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
allow i18n file loading from any origin
This commit is contained in:
parent
b2184866f2
commit
e453bca309
1 changed files with 3 additions and 1 deletions
|
@ -29,6 +29,8 @@ class i18nActions extends Actions
|
||||||
throw new Exception('Please set Config::TRANSIFEX_API_KEY in your configuration.');
|
throw new Exception('Please set Config::TRANSIFEX_API_KEY in your configuration.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Response::setHeader(Response::HEADER_CROSS_ORIGIN, "*");
|
||||||
|
|
||||||
return View::renderJson(Transifex::getTranslationResourceFile($project, $resource, $language));
|
return View::renderJson(Transifex::getTranslationResourceFile($project, $resource, $language));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue