• Hey guys,

    /**
    	 * Limits usage of the Google Topics API to disallow leakage of Topics API data to other callers
    	 */
    	private function set_topics_header() {
    		header( 'Permissions-Policy: browsing-topics=("https://ads.adthrive.com")' );
    	}

    This needs to be wrapped in if !headers_sent() like following:

    	/**
    	 * Limits usage of the Google Topics API to disallow leakage of Topics API data to other callers
    	 */
    	private function set_topics_header() {
    	    if ( ! headers_sent() ) {
    		    header( 'Permissions-Policy: browsing-topics=("https://ads.adthrive.com")' );
    	    }
    	}

    to avoid errors in cron requests

  • The topic ‘components/ads/class-main.php line 609’ is closed to new replies.