tinesoft / ngx-cookieconsent

Cookie :cookie: Consent module for Angular.
https://tinesoft.github.io/ngx-cookieconsent/
MIT License
164 stars 35 forks source link

Does not save its own cookie on AWS amplify #127

Open JanEricNitschke opened 2 years ago

JanEricNitschke commented 2 years ago

I do not really know whats going on there. I have a small application that i build with angular and am hosting as is via amplify.

Here it is on amplify https://main.d225v44fsxss8s.amplifyapp.com/explanation and here is the code on GitHub https://github.com/JanEricNitschke/AngularFightAnalyzer.

Everything works fine when i run it locally with ng serve. I can react to the events on the banner and i can see the banner store the setting in a cookie and it stays hidden when i reload the page. However on Amplify i can still react to the events and store my own cookie however ngx-cookieconsent does not store its own setting and so pops up on every page reload.

zolcsi commented 1 year ago

Have you checked, that the cookie/domain is correctly set in the config?

cookie: {
    domain: 'your domain name'
}