Closed TELLO0815 closed 2 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.
I created a pull request regarding that topic https://github.com/ConnectHolland/cookie-consent-bundle/pull/106/files
PR has been merged, thanks for the contribution!
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?