Skip to content

Commit

Permalink
Merge pull request #364 from MuckRock/363-flatpage-creds
Browse files Browse the repository at this point in the history
Include credentials on FlatPage api calls
  • Loading branch information
eyeseast authored Dec 6, 2023
2 parents debcfda + ca45368 commit 698e334
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ tests/fixtures/development.json
.vscode

scratch/
dist/
2 changes: 1 addition & 1 deletion src/pages/FlatPage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
function injectLinkReferences() {
if (!contentElem) {
console.log("No content element");
console.warn("No content element");
return;
}
Expand Down
5 changes: 3 additions & 2 deletions src/pages/NotFound.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
}
async function load() {
console.log(`Loading page content: ${endpoint}`);
const resp = await fetch(endpoint);
const resp = await fetch(endpoint, {
credentials: "include",
});
if (!resp.ok) {
notFound = true;
Expand Down

0 comments on commit 698e334

Please sign in to comment.