Obviously too obvious Thx, @texnixe, this is exactly what I was hoping for – it works like a charm by simply adding it before the
return
statement in config.php
:
<?php
// a list of allowed domains for XML uploads
Kirby\Sane\Xml::$allowedDomains = ['www.garmin.com'];
// then the regular array of config variables
return [
...
];
Jep, works just fine like this:
<?php
Kirby\Sane\Xml::$allowedDomains = ['www.garmin.com'];
Kirby::plugin('myname/myplugin', [
...
];