微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🧩

Ajax Security

Ajax Security · v
Software Development 作者 wpultimatesecurity 来源 TypingMind

简介

Use when registering or handling WordPress AJAX over admin-ajax.php - wp_ajax_{action} / wp_ajax_nopriv_{action} hooks, JavaScript that posts to admin_url('admin-ajax.php'), or wp.apiFetch / fetch calls to custom actions. Verifies the nonce with check_ajax_referer, gates the action with current_user_can, unslashes and sanitizes every field, and replies with wp_send_json_success / wp_send_json_error. Prevents CSRF, broken access control, and injection on the AJAX surface.

标签

没有标签

同类 Skill