Hi Kevin,
Thanks for help it is working.
I do that:
add_action('parse_request', 'my_custom_url_handler', 1, 1);
function my_custom_url_handler() {
if(stripos($_SERVER["REQUEST_URI"], 'my-url')) {
add_filter( 'rest_authentication_errors', '__return_true' );
}
}
That disabled only for my path and not the all api.
Best regard