• Resolved Viktor Bijlenga

    (@viktorbijlenga)


    Hi,

    We’ve encountered an issue with saving cookie consent when using your plugin on WordPress sites set up with Bedrock. In Bedrock, WordPress is stored in a subdirectory (e.g., /wp), which changes the path for the Ajax endpoint.

    It seems the plugin is using a hardcoded Ajax URL (/wp-admin/admin-ajax.php), which doesn’t work with this setup. Instead, the correct path for Bedrock would be /wp/wp-admin/admin-ajax.php. The Ajax call appears to be located in cookies-and-content-security-policy/js/cookies-and-content-security-policy.js and its minified version.

    Would it be possible to use a variable for the current Ajax URL in the script, or alternatively, implement a custom REST API endpoint to replace the Ajax call? This would allow the consent-saving functionality to work seamlessly with Bedrock setups.

    Thank you for creating such a great plugin! Please let us know if there’s any way we can assist in resolving this issue.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.