Issues Questions Sorry Request must be Ajax POST (error)

asked on

When form submitted it shows the message as--> Sorry Request must be Ajax POST. Please let me know the issue and solution for it.

    Add Answer
    All HTML codes will be stripped in the comment, except inline <code> HTML tag.
    1 Answer
    1 answered on

    You can simply find and remove the code below in PHP file, it is only used to detect if the request was made via ajax:

    if(!isset($_SERVER['HTTP_X_REQUESTED_WITH']) AND strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest') {
        die('Sorry Request must be Ajax POST'); //exit script
    }
      All HTML codes will be stripped in the comment, except inline <code> HTML tag.

      Can You Answer this? Help us answer the question!

        • Answer
        Supports basic Markdown syntax. Excluded syntaxes (Headers, Lists, Blockquotes, Table, Images)