From ca1418fc0135d52a009ab218d6e24187fb355a3c Mon Sep 17 00:00:00 2001
From: Adam Mathes <adam@adammathes.com>
Date: Sat, 14 Feb 2026 09:09:10 -0800
Subject: security: implement CSRF protection and improve session cookie
 security (fixing NK-gfh33y)

---
 frontend/src/components/FeedItem.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'frontend/src/components/FeedItem.tsx')

diff --git a/frontend/src/components/FeedItem.tsx b/frontend/src/components/FeedItem.tsx
index 9b40114..ae4462a 100644
--- a/frontend/src/components/FeedItem.tsx
+++ b/frontend/src/components/FeedItem.tsx
@@ -2,6 +2,8 @@ import { useState, useEffect } from 'react';
 import type { Item } from '../types';
 import './FeedItem.css';
 
+import { apiFetch } from '../utils';
+
 interface FeedItemProps {
   item: Item;
 }
@@ -24,7 +26,7 @@ export default function FeedItem({ item: initialItem }: FeedItemProps) {
     const previousItem = item;
     setItem(newItem);
 
-    fetch(`/api/item/${newItem._id}`, {
+    apiFetch(`/api/item/${newItem._id}`, {
       method: 'PUT',
       headers: {
         'Content-Type': 'application/json',
-- 
cgit v1.2.3

