How do I delete/block third-party cookies for example Facebook or Instagram cookies? This is the code I got so far and is working for cookies on my domain. The cookie "_gid" is removed when clicked. (The "JSESSIONID" Cookie is secure)
$('#disable-cookies').click(function(){
$('#cookieContent').hide();
Cookies.set('user-disable-cookies', true, { expires: 100 });
Cookies.remove('_gid', { path: '/', domain: '.MYDOMAIN.com' });
Cookies.remove('JSESSIONID', { path: '/', domain: '.nr-data.net' });
Cookies.remove('fr', { path: '/', domain: '.facebook.com' });
Cookies.remove('csrftoken', { path: '/', domain: '.api.instagram.com' });
Cookies.remove('rur', { path: '/', domain: 'api.instagram.com' });
});
thanks for any help!