Sanitize AJAX requests on public routes