16patsle / wordpress-csp-manager

WordPress plugin for configuring Content Security Policy headers for your site. Allows different CSP headers for admin, logged inn frontend and regular visitors.

Home Page:https://wordpress.org/plugins/csp-manager/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Headers already sent warning on cron run

tborodaichuk opened this issue · comments

Hello, we have noticed that the plugin doesn't work correctly with wp-cron

Error message:
Cannot modify header information - headers already sent
called at /htdocs/wp-content/plugins/csp-manager/src/CSP_Manager/Core.php (74)
in CSP_Manager\Core::csp_init called at /htdocs/wp-includes/class-wp-hook.php (307)
in WP_Hook::apply_filters called at /htdocs/wp-includes/class-wp-hook.php (331)
in WP_Hook::do_action called at /htdocs/wp-includes/plugin.php (474)
in do_action called at /htdocs/wp-settings.php (587)
in require_once called at /htdocs/wp-config.php (116)
in require_once called at /htdocs/wp-load.php (50)
in require_once called at /htdocs/wp-cron.php (44)