lib/FileWrapper.php
protected function fontCheck(): void
    {
        if (is_null($this->mime)) {
            throw \AWonderPHP\FileWrapper\NullPropertyException::propertyIsNull('mime');
        }
        $test = substr($this->mime, 0, 5);
        if ($test == 'font/') {
            $this->allowOrigin = "*";
            return;
        }
        if (strcmp($this->mime, 'application/vnd.ms-fontobject') == 0) {
            $this->allowOrigin = "*";
        }
    }
protected function fontCheck(): void
    {
        if (is_null($this->mime)) {
            throw \AWonderPHP\FileWrapper\NullPropertyException::propertyIsNull('mime');
        }
        $test = substr($this->mime, 0, 5);
        if ($test == 'font/') {
            $this->allowOrigin = "*";
            return;
        }
        if (strcmp($this->mime, 'application/vnd.ms-fontobject') == 0) {
            $this->allowOrigin = "*";
        }
    }
If serving a font, sets the allowOrigin to * which browsers need.

You can use the PHP wrapper calling this class to send a 403 if the referer is not an
approved domain.

@return void