tinesoft/ngx-cookieconsent

Does not save its own cookie on AWS amplify

JanEricNitschke opened this issue · 1 comments

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.

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

cookie: {
    domain: 'your domain name'
}