{"id":18361063,"date":"2025-03-14T12:05:14","date_gmt":"2025-03-14T12:05:14","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/solid-security-interaction-causing-parsererror\/"},"modified":"2025-03-14T12:05:14","modified_gmt":"2025-03-14T12:05:14","slug":"solid-security-interaction-causing-parsererror","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/solid-security-interaction-causing-parsererror\/","title":{"rendered":"Solid Security interaction causing parsererror"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Given I have Solid Security and Login With AJAX installed<br \/>When I attempt to login with a bad username\/password<br \/>And I am not banned<br \/>Then I see an error informing me of the errors<br \/><br \/>When I attempt to login with a bad username\/password<br \/>And I am banned<br \/>Then I see an error of parsererror: Error: jQuery&#8230;.. was not called<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As Login with AJAX does not force a page reload on each login request, Solid Security can ban a user by IP Address but not render the forbidden page, meaning that a user can continue to interact with the login form. In this case, the response to the login requests will return a HTML page, however Login with AJAX expects a JSON object which seems to be triggering the parser error as above. <\/p>\n","protected":false},"template":"","class_list":["post-18361063","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18361063","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18361063\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18361063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}