Skip to content

Commit

Permalink
Added same-origin credentials to fetch config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Cássio Zen committed Jan 12, 2017
1 parent 4f2dc92 commit 58461c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions/config.js
Expand Up @@ -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 })`);
}
Expand Down

0 comments on commit 58461c0

Please sign in to comment.