You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is obviously done to comply with CSP & keep it dynamic configurable. Although another approach would be to generate the JS with the parameters. An improvement to the current code would be to use HTML 5 hidden attribute instead of CSS rule:
Currently this custom code is added in the HTML:
It uses the
hidethis
class to hide it and then usesfrontend/js/matomo.js
to pass this on as arguments for the Matomo javascript.This is obviously done to comply with CSP & keep it dynamic configurable. Although another approach would be to generate the JS with the parameters. An improvement to the current code would be to use HTML 5
hidden
attribute instead of CSS rule:Internet.nl/frontend/css/style.css
Lines 961 to 963 in db713eb
The current variables are only in the settings.py and base template:
Internet.nl/internetnl/settings.py
Lines 109 to 114 in fca192a
Internet.nl/interface/templates/base.html
Lines 30 to 34 in fca192a
via docker compose env of the app container:
Internet.nl/docker/docker-compose.yml
Lines 151 to 153 in fca192a
Currently the app (Django) container is serving the /static files, so either fix it during minimizing:
Internet.nl/docker/Dockerfile
Line 204 in fca192a
or, since the Django code doesn't uses these variables, it could be done with a .template and adding a line like this below the line mentioned above:
RUN envsubst < ...matamo.js.template > ...matamo.js
The text was updated successfully, but these errors were encountered: