src/CSPBuilder.php
public function enableHttpsTransformOnHttpsConnections(): self
    {
        $this->needsCompile = ($this->needsCompile || $this->httpsTransformOnHttpsConnections !== true);
        $this->httpsTransformOnHttpsConnections = true;

        return $this;
    }
public function enableHttpsTransformOnHttpsConnections(): self
    {
        $this->needsCompile = ($this->needsCompile || $this->httpsTransformOnHttpsConnections !== true);
        $this->httpsTransformOnHttpsConnections = true;

        return $this;
    }
public function enableHttpsTransformOnHttpsConnections ( ) : self { $ this -> needsCompile = ( $ this -> needsCompile || $ this -> httpsTransformOnHttpsConnections !== true ) ; $ this -> httpsTransformOnHttpsConnections = true ; return $ this ; }
Enable that HTTP sources get converted to HTTPS if the connection is such.

This is enabled by default

@return self
Enable that HTTP sources get converted to HTTPS if the connection is such .