as I mentioned links show up only if I set them directly in provideGdprConfig. So what is the purpose of AbpCookieConsentOptions? what if I want to configure links form backend?
Hi, Angular doesn't work.
Thank you for your answer. Both the backend and Angular (GdprConfigModule and provideGdprConfig) have been configured, but it still does not work.
Hi everyone,
I'm using Volo.Abp.Gdpr.Web version 9.0.5 and have configured the cookie consent options like this: context.Services.Configure<AbpCookieConsentOptions>(options => { options.IsEnabled = true; options.CookiePolicyUrl = "http://www.google.com"; options.PrivacyPolicyUrl = "http://www.google.com"; options.Expiration = TimeSpan.FromDays(180); });
I also added the middleware after the authentication middleware:
app.UseAuthentication(); app.UseAbpCookieConsent();
However, my issue is that the provideGdprConfig() method in app.module.ts does not seem to bind to these backend options. The cookie banner shows up, but the CookiePolicy and PrivacyPolicy links are missing.
If I set these options manually in the Angular module, it works correctly: provideGdprConfig( withCookieConsentOptions({ cookiePolicyUrl: 'www.google.com', privacyPolicyUrl: 'www.google.com', }), ),
Also, when I check the output of the API endpoint /api/abp/application-configuration, the cookie options do not appear in the response. Has anyone encountered this or knows how to ensure the frontend binds properly to the backend cookie consent configuration?
Thanks in advance.