Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9193109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:04:58+00:00 2026-06-17T21:04:58+00:00

I am trying to login to a website using a known username and password

  • 0

I am trying to login to a website using a known username and password and to get some data displayed from the site for a specific user account on that website. I am using jQuery and Ajax for this purpose. This is my code:

$.ajax({
async: false,
cache: false,
type: 'POST',
dataType: 'json',  // json...just for example sake
data: ({
    'login_username': username,
    'secretkey': password
}),
url: 'https://mail.someserver.com/src/redirect.php',
success: function (data) {
    alert("SUCCESS!")
    if (data === '1') {  // server returns a "1" for success
        // success!
        // do whatever you need to do
    } else {
        // fail!
    }
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
    // something went wrong with the request
    alert("Failed!");
}

});

I’ve already made my search around the web and I know that browsers do not permit cross server ajax calls to prevent security issues, but I’ve already tried to use “jsonp” as dataType to no avail 🙁

So, what am I doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:05:00+00:00Added an answer on June 17, 2026 at 9:05 pm

    My fault isn’t at the code above, my fault was that in my manifest file (I am building a Google Chrome extension) I didn’t have set proper permissions (https://*).

    Sorry for the frustration!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'am trying to get the Login button from Facebook to work on my website
I'm trying to login automatically in a website using Perl with WWW::Mechanize . What
I'm trying to implement a login system to sign into a website using public
I'm trying to get a login on a website where it connects to the
I am trying to obtain some information from a webpage that requires login. I
I am trying to login to a website using java.net in Google App Engine
I'm trying to automate some tasks on a website using Java. I have a
I am trying to login to my JBoss webapp using the example code from
I'm trying to embed some CSS3 for my website buttons using custom CSS3 button
I am trying to login to a Website using the following Code CookieContainer cookieContainer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.