You could percent encode the URL with URLComponents
var components = URLComponents(string: "https://stuntmans.evosale.se")!
components.path = "/admin/api/dr?kt"
guard let url = components.url else { return }
AF.request(url, headers: headers).validate().responseJSON { response in
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…