Skip to content

Legal 0.1.10: Core now serves the consent-config endpoint

Legal 0.1.10 hands the cookie banner’s settings endpoint, GET /phoenix_kit/api/consent-config, over to PhoenixKit core and drops the module’s own controller for it.

Core always declared this route, but only when Legal was installed. The banner script asks for it on every site, so a site without Legal got a routing error. Core now answers the route on every site: with an empty 204 when Legal is missing, and with the same settings as before when it is there. With Legal installed, nothing changes for visitors.

Upgrading

Legal 0.1.10 needs phoenix_kit 1.7.227 or later. On an older core the route would point at the removed controller and fail on page loads where the banner is not rendered on the server. Update core first, or both together; an older Legal on the new core is fine.

 

 


Legal 0.1.10. Install or update: {:phoenix_kit_legal, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.