Does the .net core built in cookie consent feature block 3rd party cookies automatically?

1.7k views Asked by At

Asp .net core has this built in cookie consent feature where you can get permissions form a user to use cookies which are not marked as essential. I use this in Startup.cs (.net core 3.1) like shown in the documentation https://learn.microsoft.com/en-us/aspnet/core/security/gdpr?view=aspnetcore-3.1

services.Configure<CookiePolicyOptions>(options =>
            {
                options.CheckConsentNeeded = context => true;
                options.MinimumSameSitePolicy = SameSiteMode.None;
            });

Now my question is: If a user does not give the permission to use cookies, does this automatically prevent cookies from 3parties (like Google analytics, or cookies form embedded youtube videos, and so on..) too? So that no additional work on my side is needed? Or is this feature only useful for my own cookies?

Thank you very much for any help here!

1

There are 1 answers

2
jones On

Ok, my own test showed, that this does not prevent the adding of 3rd party cookies