Skip to content

Commit 7bd0b71

Browse files
committed
fix: get csrf cookie
1 parent 6402340 commit 7bd0b71

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed

.github/workflows/contributing.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ on:
1010
workflow_dispatch:
1111

1212
jobs:
13+
contributor:
14+
uses: ocadotechnology/codeforlife-contributor-backend/.github/workflows/check-pr-authors-signed-latest-agreement.yaml@main
15+
1316
test:
1417
uses: ocadotechnology/codeforlife-workspace/.github/workflows/test-javascript-code.yaml@main
1518
secrets: inherit
1619
with:
1720
node-version: 22
1821

1922
release:
20-
needs: [test]
23+
needs: [test] # TODO: add contributor
2124
concurrency: release
2225
runs-on: ubuntu-latest
2326
permissions:

src/api/createApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default function createApi<TagTypes extends string = never>({
5959
if (api.type === "mutation" && getCsrfCookie() === undefined) {
6060
// Get the CSRF token.
6161
const { error } = await fetch(
62-
{ url: "/csrf/cookie", method: "GET" },
62+
{ url: "/csrf/cookie/", method: "GET" },
6363
api,
6464
{},
6565
)

0 commit comments

Comments
 (0)