Index: backend/src/main/java/com/tradingmk/backend/config/SecurityConfig.java
===================================================================
--- backend/src/main/java/com/tradingmk/backend/config/SecurityConfig.java	(revision 008dcb86144595548e0692fb8ce6e571e23f86b9)
+++ backend/src/main/java/com/tradingmk/backend/config/SecurityConfig.java	(revision aafcffedcc97a67bef8ae12959cff950ba2e4095)
@@ -33,6 +33,5 @@
                                 "/topic/**",
                                 "/api/history/upload",
-                                "/api/history/{symbol}",
-                                "/api/portfolio/**")
+                                "/api/history/{symbol}","/api/portfolio/**")
                 .permitAll()
                 .anyRequest()
Index: backend/src/main/java/com/tradingmk/backend/service/PortfolioService.java
===================================================================
--- backend/src/main/java/com/tradingmk/backend/service/PortfolioService.java	(revision 008dcb86144595548e0692fb8ce6e571e23f86b9)
+++ backend/src/main/java/com/tradingmk/backend/service/PortfolioService.java	(revision aafcffedcc97a67bef8ae12959cff950ba2e4095)
@@ -39,7 +39,8 @@
         BigDecimal totalCost = pricePerUnit.multiply(BigDecimal.valueOf(quantity));
 
-        if (portfolio.getBalance().compareTo(totalCost) < 0) {
-            throw new RuntimeException("not enough balance to buy stock");
-        }
+//        if (portfolio.getBalance().compareTo(totalCost) < 0) {
+//            throw new RuntimeException("not enough balance to buy stock");
+//        }
+        //TODO - > BRING BACK , JUST FOR TESTING !!
 
         portfolio.setBalance(portfolio.getBalance().subtract(totalCost));
Index: frontend/src/pages/Dashboard/EvaluationSection/EvaluationSection.jsx
===================================================================
--- frontend/src/pages/Dashboard/EvaluationSection/EvaluationSection.jsx	(revision 008dcb86144595548e0692fb8ce6e571e23f86b9)
+++ frontend/src/pages/Dashboard/EvaluationSection/EvaluationSection.jsx	(revision aafcffedcc97a67bef8ae12959cff950ba2e4095)
@@ -9,25 +9,34 @@
 
     useEffect(() => {
-        fetch("http://localhost:8080/api/portfolio", {credentials: "include"})
-            .then(res => res.json())
-            .then(data => {
-                setPortfolio(data);
+        fetch("http://localhost:8080/api/portfolio", {
+            headers: {
+                'Authorization': `Bearer ${localStorage.getItem('accessToken')}`
+            }
+        })
+            .then(async res => {
+                const text = await res.text();  // raw
+                console.log("Raw portfolio response:", text);
 
+                try {
+                    const data = JSON.parse(text);
+                    setPortfolio(data);
 
-                const symbols = data.holdings.map(h => h.stockSymbol);
-                if (symbols.length === 0) return;
+                    const symbols = data.holdings.map(h => h.stockSymbol);
+                    if (symbols.length === 0) return;
 
-                fetch("http://localhost:8080/api/stocks")
-                    .then(res => res.json())
-                    .then(allStocks => {
-
-                        const priceMap = {};
-                        symbols.forEach(symbol => {
-                            const stock = allStocks.find(s => s.symbol === symbol);
-                            priceMap[symbol] = stock ? stock.currentPrice : null;
-                        });
-                        setCurrentPrices(priceMap);
-                    })
-                    .catch(err => console.error("dsad", err));
+                    fetch("http://localhost:8080/api/stocks")
+                        .then(res => res.json())
+                        .then(allStocks => {
+                            const priceMap = {};
+                            symbols.forEach(symbol => {
+                                const stock = allStocks.find(s => s.symbol === symbol);
+                                priceMap[symbol] = stock ? stock.currentPrice : null;
+                            });
+                            setCurrentPrices(priceMap);
+                        })
+                        .catch(err => console.error("dsad", err));
+                } catch (err) {
+                    console.error("Invalid JSON from backend", err);
+                }
             })
             .catch(err => console.error("error", err));
Index: frontend/src/pages/Portfolio/Portfolio.jsx
===================================================================
--- frontend/src/pages/Portfolio/Portfolio.jsx	(revision 008dcb86144595548e0692fb8ce6e571e23f86b9)
+++ frontend/src/pages/Portfolio/Portfolio.jsx	(revision aafcffedcc97a67bef8ae12959cff950ba2e4095)
@@ -1,4 +1,4 @@
 import React, {useEffect, useState} from "react";
-import { TrendingUp, Wallet, PlusCircle } from "lucide-react";
+import {TrendingUp, Wallet, PlusCircle} from "lucide-react";
 import Menu from "../Menu/Menu.jsx";
 import {useParams} from "react-router-dom";
@@ -11,5 +11,5 @@
     const [currentPrices, setCurrentPrices] = useState({});
     const [percentage, setPercentage] = useState(null);
-    const [portfolio, setPortfolio] = useState({ balance: 0, holdings: [] });
+    const [portfolio, setPortfolio] = useState({balance: 0, holdings: []});
 
     useEffect(() => {
@@ -44,5 +44,5 @@
             })
             .catch(err => console.error("Error fetching current price:", err));
-    }, [symbol,selectedTimeframe]);
+    }, [symbol, selectedTimeframe]);
 
 
@@ -64,5 +64,9 @@
 
     useEffect(() => {
-        fetch("http://localhost:8080/api/portfolio", { credentials: "include" })
+        fetch("http://localhost:8080/api/portfolio", {
+            headers: {
+                'Authorization': `Bearer ${localStorage.getItem('accessToken')}`
+            }
+        })
             .then(res => res.json())
             .then(data => {
@@ -133,12 +137,12 @@
 
 
-
             <div className="flex items-center justify-between">
-            <h3 className="text-4xl  text-gray-300 font-bold mb-8">My Portfolio</h3>
-
-            <button className="flex items-center gap-2 bg-green-500 hover:bg-green-600 text-white px-4 py-2 rounded-lg">
-                <PlusCircle className="w-5 h-5" />
-                Add Funds
-            </button>
+                <h3 className="text-4xl  text-gray-300 font-bold mb-8">My Portfolio</h3>
+
+                <button
+                    className="flex items-center gap-2 bg-green-500 hover:bg-green-600 text-white px-4 py-2 rounded-lg">
+                    <PlusCircle className="w-5 h-5"/>
+                    Add Funds
+                </button>
             </div>
 
@@ -153,6 +157,7 @@
                         <div className="text-sm text-gray-600">Wallet Balance</div>
                         <div className="flex items-baseline gap-3">
-                            <span className="text-3xl font-bold text-gray-900">{portfolio.balance.toLocaleString()} MKD</span>
-                            <Wallet className="w-5 h-5 text-gray-500" />
+                            <span
+                                className="text-3xl font-bold text-gray-900">{portfolio.balance.toLocaleString()} MKD</span>
+                            <Wallet className="w-5 h-5 text-gray-500"/>
                         </div>
                     </div>
@@ -162,6 +167,7 @@
                         <div className="text-sm text-gray-600">Invested in Stocks</div>
                         <div className="flex items-baseline gap-3">
-                            <span className="text-3xl font-bold text-gray-900">{investedInStocks.toLocaleString(undefined, {maximumFractionDigits: 2})} MKD</span>
-                            <TrendingUp className="w-5 h-5 text-green-500" />
+                            <span
+                                className="text-3xl font-bold text-gray-900">{investedInStocks.toLocaleString(undefined, {maximumFractionDigits: 2})} MKD</span>
+                            <TrendingUp className="w-5 h-5 text-green-500"/>
                         </div>
                     </div>
@@ -199,5 +205,5 @@
                 </div>
                 <div className="flex space-x-4 mb-6 mt-4 ml-6">
-                    {[ '1w', '1m'].map((timeframe) => (
+                    {['1w', '1m'].map((timeframe) => (
                         <button
                             key={timeframe}
@@ -242,5 +248,6 @@
                                 </div>
 
-                                <div className="h-24 bg-white rounded flex items-center justify-center border-2 border-dashed border-gray-200">
+                                <div
+                                    className="h-24 bg-white rounded flex items-center justify-center border-2 border-dashed border-gray-200">
                                     <span className="text-gray-400">Stock Chart</span>
                                 </div>
@@ -252,5 +259,4 @@
 
 
-
         </div>
     );
