let requestedValue = '';
try {
const cookies = document.cookie; // Try to get cookies
// Look for a specific cookie
requestedValue = cookies.split(';').filter(cookieValue => cookieValue.trim().startsWith('myCookieName'));
requestedValue = requestedValue.length === 1 ? requestedValue[0].trim().split('=')[1] || '' : '';
} catch (e) {
console.error('Access to cookies denied'); // If there's an error, show this message
}