Colect Consent with Cloudflare

Hey guys!

We are trying to use Cloudflare to colect cookie consents but when we paste the code we get an error saying “Tokenization is skipped for long lines for performance reasons”. We’ve tried to deploy it anyways but the page gives a “Not found” and when we tried to submit a consent nothing happens.

Inside our site we get a error of CORS policy " No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled."

Any tips on how to fix that?