I have this ajax request.

 $.ajax({
                type: 'Post',
                dataType: 'json',
                contentType: "application/json; charset=utf-8",
                url: 'https://********/***/*******.asmx/Login',
                data: "{ userID: '" + userName + "', pwd: '" + password + "' }",
                success: successCallBack,
                error: failureCallBack
            });

Problems is this works fine in older chrome browser. Eg. 20.XX.XX
But it does not work on new chrome browser. Eg. 31.0.1650.57 m

When i remove dataType: 'json',
contentType: "application/json; charset=utf-8", lines in chrome 31.XX browser gives me response as a plain text.
Please help me to figure out how to resolve this issue.

i.e. The web service works fine

I don't know much, but try type: 'POST' instead of Post.

Oh and btw remember to hash your passwords :D

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.