Skip to content

Commit

Permalink
Merge pull request #140 from SJSUCSClub/139-bug-csrf-fails-no-referer
Browse files Browse the repository at this point in the history
[Fix] Add Referer
  • Loading branch information
chrehall68 authored Oct 15, 2024
2 parents 2756081 + 29145bc commit 3935de8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/(main)/professors/review/success/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default async function Page({
'Content-Type': 'application/json',
Cookie: cookies().toString(),
'X-CSRFToken': cookies().get('csrftoken')?.value ?? '',
Referer: process.env.NEXT_PUBLIC_BASE_URL || '',
},
body: JSON.stringify(body),
},
Expand Down

0 comments on commit 3935de8

Please sign in to comment.