Twitter Login Oauth issue Using Jquery



I am working on twitter login using Jquery and Plain Java Script. I have completed most of work, I am trying to get request_token from URL. Request goes from my page as well but everytime it send me error of:


XMLHttpRequest cannot load Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘’ is therefore not allowed access. The response had HTTP status code 400.

Object {readyState: 0, status: 0, statusText: “error”}

My request URL page is, you can check it’s page source as well from source page.

I have put valid and enough data from twitter apps to this page.

Can anyone tell me why I am facing this issue ?

Since last 3-4 days I am working on this issue, still not get solution for the issue.

And sometimes it gave me another type of error:

XMLHttpRequest cannot load Response for preflight has invalid HTTP status code 400 twt.html:82