I just tried this on a testing environment, following these steps:
– on a website, set up a pure html file which was the “headless” website
– copied the localised vars, complianz.min.js, and banner html to the html file
The banner worked as expected.
One thing that doesn’t work yet: the cookieblocker works by parsing the generated html of the website (server side), and blocking scripts and iframes that track users.
A possible solution for this could be to pass the html from the headless framework through the cookieblocker:
$html = COMPLIANZ::$cookie_blocker->replace_tags($html);
Another approach could be to add this to a rest api call.
It all depends on how the headless framework generates the html I think.
As third option, you could choose to build the html “blocked” by default.
If you can provide me with some input as to what possibilities there are on headless, I can maybe offer more options.