Harborn-digital / cookie-consent-bundle

Symfony bundle to append Cookie Consent to your website to comply to AVG/GDPR for cookies.
MIT License
19 stars 18 forks source link

No route found for "POST /de_DE/": Method Not Allowed (Allow: GET) #93

Closed TELLO0815 closed 2 years ago

TELLO0815 commented 3 years ago

I get AJAX error No route found for "POST /de_DE/": Method Not Allowed (Allow: GET) when save the form. (Symfony 4.4.21) Any idea?

TELLO0815 commented 3 years ago

I don't understand why we don't define one route for AJAX. At the moment it calls all the time the one the form is located. Means can be happen on endless sites. And all must accept POST.

xhr.open('POST', cookieConsentForm.action);

I changed this now, because otherwise I have to change all routes to accept POST.

simonhard commented 2 years ago

I created a pull request regarding that topic https://github.com/ConnectHolland/cookie-consent-bundle/pull/106/files

matthijsch commented 2 years ago

PR has been merged, thanks for the contribution!