0

Is it possible to make javascript based web proxy, where the url entered by the user is fetched by the javascript directly without going to the proxy server ?

14
  • Are you referring to make a cross-domain AJAX request? Would something like JSONP be what you are looking for? Commented Dec 27, 2012 at 21:12
  • Unless CORS is supported, or it's JSONP, no it's not possible without some server scripting or a service like YQL! Commented Dec 27, 2012 at 21:12
  • What do you mean by "without going to the proxy server"? Commented Dec 27, 2012 at 21:13
  • Possible duplicate of Ways to circumvent the same-origin policy? Commented Dec 27, 2012 at 21:14
  • 1
    @AshniGoyal, Stop calling it a proxy server. There isn't one. Simply use an <iframe>. Note that not all pages will allow being used within an <iframe>. Commented Jan 4, 2013 at 14:33

1 Answer 1

1

You are not going to be doing it with pure JavaScript unless the JavaScript happens to be running on the server.

You can use a service like Yahoo Pipes and get the page via a JSONP call.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks for your reply. Could you please explain why client side javascript will not work ?
Have you not read about the Same Origin Policy - developer.mozilla.org/en-US/docs/JavaScript/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.