Skip to content

Commit

Permalink
Include credentials on FlatPage api calls
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeseast committed Dec 6, 2023
1 parent debcfda commit 4fc9450
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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/
4 changes: 3 additions & 1 deletion src/pages/NotFound.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,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 4fc9450

Please sign in to comment.