[#72268702] Updated POST, PUT, and DELETE to have X-CSRF-Token value.

Should be `elseif`, should be on the same line as the closing brace above and should have a space before the opening parenthesis.