MuckRock / documentcloud-frontend

DocumentCloud's front end source code - Please report bugs, issues and feature requests to info@documentcloud.org
https://www.documentcloud.org
GNU Affero General Public License v3.0
15 stars 5 forks source link

Missing `csrf_token` in `/(app)/projects/[id]-[slug]/+page.ts` #740

Closed sentry-io[bot] closed 4 days ago

sentry-io[bot] commented 4 days ago

Should add to returned data:

...(data ?? {}), // include csrf_token

Similar to how we include the token in /(app)/documents/[id]-[slug]/+page.ts.

Sentry Issue: DOCUMENTCLOUD-FRONTEND-NEXT-S

Error: missing csrf_token
  at <object>.m (../../../src/lib/components/forms/Reprocess.svelte:98:55)