feat: 安全性提升

This commit is contained in:
手瓜一十雪 committed 2025-09-06 10:49:29 +08:00
1 parent 2daebf1afe
commit a0ef738bcf
10 files changed
+27 -24

No files matched your search

@@ -1,4 +1,4 @@
import GenericForm from './generic_form'
import GenericForm, { random_token } from './generic_form'
import type { Field } from './generic_form'
export interface HTTPClientFormProps {
@@ -20,7 +20,7 @@ const HTTPClientForm: React.FC<HTTPClientFormProps> = ({
url: 'http://localhost:8080',
reportSelfMessage: false,
messagePostFormat: 'array',
token: '',
token: random_token(16),
debug: false
}