Real Cookie Banner REST API no longer works
-
Hi Gregory,
WP cerber blocks the Real Cookie Banner REST API request even though it is enabled. Everything was working for the last months. I received the following information from the Real Cookie Banner developer:
Since the last update of Real Cookie Banner it “obfuscates” the WP REST API calls to be able to save the consents even with active ad blocker (e.g. Brave Browser).
This doesn’t seem to work with WP Cerber (code checked), as it uses a “very” hacky way to determine the path of the REST API request. Technically, WP Cerber uses $_REQUEST[‘rest_route’] instead of https://github.com/WordPress/WordPress/blob/fe6b65c44b929ee5583f6146d92388ef43061f9a/wp-includes/rest-api.php#L390, which is the default WordPress API to do so. Also, the cerber_access_control() function, which blocks the REST API requests, is executed at init time, instead of https://developer.www.ads-software.com/reference/hooks/rest_api_init/ or even better: https://developer.www.ads-software.com/reference/hooks/rest_authentication_errors/.
Here you might have to contact WP Cerber support to adjust this.
Is there a solution?
Thanks
Kind regards
christian
- The topic ‘Real Cookie Banner REST API no longer works’ is closed to new replies.