• Resolved roghithsam

    (@roghithsam)


    I’m using the following login JS code in my premium theme:

    var ajax_url = razziData.ajax_url.toString().replace('%%endpoint%%', 'razzi_login_authenticate');

    $.post(
    ajax_url,
    {
    security: nonce,
    username: username,
    password: password,
    remember: remember
    },
    function (response) {
    if (!response.success) {
    // handle error
    } else {
    // handle success
    }
    }
    );

    The issue I’m facing is:

    • ✅ When cache is disabled, the login works perfectly.
    • ❌ When cache is enabled, the login fails, and I see this error in the browser console when i click the login button
    POST https://domain.com/?wc-ajax=razzi_login_authenticate 403 (Forbidden)

    In Cache -> Exclude Settings -> Do Not Cache URIs -> added this but still the problem not solved

    wc-ajax
    ?wc-ajax=razzi_login_authenticate
    wc-ajax=razzi_login_authenticate
    /wc-ajax/
    • This topic was modified 1 year ago by roghithsam.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Login Not Working When Cache is Enabled’ is closed to new replies.