1d0f227267
SameSite=Lax cookie 已防跨站 POST/DELETE, 无需额外 CSRF header 前端 JS 无法读取 HttpOnly cookie, 无法设置 X-CSRF-Token Co-Authored-By: Claude <noreply@anthropic.com>
39 lines
794 B
YAML
39 lines
794 B
YAML
http_port: 4200
|
|
last_updated: 27154.60330813
|
|
plugin_routes:
|
|
example_plugin:
|
|
- methods:
|
|
- GET
|
|
path: /example_plugin/api/example/info
|
|
require_auth: false
|
|
- methods:
|
|
- POST
|
|
path: /example_plugin/api/plugin/echo
|
|
require_auth: true
|
|
- methods:
|
|
- POST
|
|
path: /example_plugin/api/plugin/plugin_status
|
|
require_auth: true
|
|
sentinel:
|
|
- methods:
|
|
- GET
|
|
path: /sentinel/api/nodes
|
|
require_auth: true
|
|
- methods:
|
|
- POST
|
|
path: /sentinel/api/nodes
|
|
require_auth: true
|
|
- methods:
|
|
- POST
|
|
path: /sentinel/api/nodes/test
|
|
require_auth: true
|
|
- methods:
|
|
- POST
|
|
path: /sentinel/api/nodes/delete
|
|
require_auth: true
|
|
- methods:
|
|
- POST
|
|
path: /sentinel/api/plugin/sentinel
|
|
require_auth: true
|
|
websocket_port: 4240
|