Added same-origin credentials to fetch config file
This commit is contained in:
parent
4f2dc92bfe
commit
58461c0d22
@ -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 })`);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user