Added same-origin credentials to fetch config file

This commit is contained in:
Cássio Zen 2017-01-12 19:20:37 -02:00
parent 4f2dc92bfe
commit 58461c0d22

View File

@ -74,7 +74,7 @@ export function loadConfig() {
return (dispatch) => {
dispatch(configLoading());
fetch("config.yml").then((response) => {
fetch("config.yml", { credentials: 'same-origin' }).then((response) => {
if (response.status !== 200) {
throw new Error(`Failed to load config.yml (${ response.status })`);
}