ParagonIE\CSPBuilder\CSPBuilder::allowPluginType PHP Method

allowPluginType() public method

Add a plugin type to be added
public allowPluginType ( string $mime = 'text/plain' ) : self
$mime string
return self
    public function allowPluginType(string $mime = 'text/plain') : self
    {
        $this->policies['plugin-types']['types'][] = $mime;
        $this->needsCompile = true;
        return $this;
    }