test: support bypass CSRF

This commit is contained in:
ReaJason
2025-11-20 00:36:25 +08:00
parent e7c69befe8
commit d0acb7712a
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;