Skip to content

Deprecated Functionality: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated

I am using magento 2.4.6 One of my modules is adding meta tags in catalog. Not my code case ‘catalog_product_view’: $currentProduct = $this->_registry->registry(‘current_product’); if ($currentProduct && $currentProduct->getData(‘enable_index_follow’)) { $indexValue = $currentProduct->getData(‘index_value’); $followValue = $currentProduct->getData(‘follow_value’); $indexFollowValue = $this->_indexFollowBuilder->getIndexFollowValue($indexValue, $followValue); $this->_pageConfig->setRobots($indexFollowValue); }… Read More »Deprecated Functionality: parse_url(): Passing null to parameter #1 ($url) of type string is deprecated

How to convert csp meta tag into csp_whitelist.xml format in magento 2

below is the meat tag i want covert as per magento 2 <meta http-equiv=”Content-Security-Policy” content=”default-src ‘self’ ‘unsafe- inline’;script-src ‘self’ ‘unsafe-inline’ *.acsbapp.com *.acsbap.com acsbap.com acsbapp.com;connect-src ‘self’ ‘unsafe-inline’ *.acsbapp.com *.acsbap.com acsbap.com acsbapp.com *.wikipedia.org;media-src ‘self’ ‘unsafe-inline’ data:;img-src ‘self’ ‘unsafe -inline’ data: *.acsbapp.com *.acsbap.com… Read More »How to convert csp meta tag into csp_whitelist.xml format in magento 2