test: support bypass CSRF

This commit is contained in:
ReaJason
2025-09-16 01:29:57 +08:00
parent dfc2ae0cf1
commit e4d7ad810e
5 changed files with 9 additions and 3 deletions
@@ -80,6 +80,7 @@ public class AntSwordManager {
manager.setEntrypoint(entrypoint);
Map<String, String> headers = new HashMap<>(16);
headers.put("Content-Type", "application/x-www-form-urlencoded");
headers.put("Referer", entrypoint);
headers.putAll(this.headers);
manager.setHeaders(headers);
return manager;