Ben
2008-Jun-06 18:29 UTC
Prototype: Use of /proxy?url= to circumvent the Same Origin Policy
Hi, everyone. I was able to get the Ajax.Request basically working, such that it returns "Damn! You are beyond #10...", but I had to change the "/proxy? url=" to "http://localhost/myApp/proxy.html?url=". Apparently, the response is just my proxy.html page. With "/proxy?url=" in place, WebSphere shows an error: SRVE0017W: A WebGroup/Virtual Host to handle /proxy has not been defined. Surely someone else has run across this issue, but googling returns me no evidence of it. How do I set up this /proxy url redirection? I''ve tried various ways in proxy.html, but with no success Is there a config setting in web.xml perhaps? Ben Ethridge Senior Java Developer Leapfrog Systems --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Greg Hemphill
2008-Jun-06 18:41 UTC
Re: Prototype: Use of /proxy?url= to circumvent the Same Origin Policy
I suspect your problem doesn''t lie in prototype but with your web server and/or middleware. In other words if you just type "proxy?url=" in a browser does it work? Or do you have to type "http://localhost/myApp/proxy.html?url=" to make the page work in a web browser. Most likely you server isn''t mapping the URL "/proxy" to the file "/app/proxy.html". So I''d look at your server config and how your websphere is setup to handle URL design. G On Jun 6, 2008, at 2:29 PM, Ben wrote:> > Hi, everyone. > > I was able to get the Ajax.Request basically working, such that it > returns "Damn! You are beyond #10...", but I had to change the "/ > proxy? > url=" to "http://localhost/myApp/proxy.html?url=". Apparently, the > response is just my proxy.html page. > > With "/proxy?url=" in place, WebSphere shows an error: > > SRVE0017W: A WebGroup/Virtual Host to handle /proxy has not been > defined. > > Surely someone else has run across this issue, but googling returns me > no evidence of it. > > How do I set up this /proxy url redirection? I''ve tried various ways > in proxy.html, but with no success Is there a config setting in > web.xml perhaps? > > Ben Ethridge > Senior Java Developer > Leapfrog Systems > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Ben
2008-Jun-06 19:04 UTC
Re: Prototype: Use of /proxy?url= to circumvent the Same Origin Policy
I suspect you are right, i.e. I have to type in the latter. What was the author''s intent, though? What did she have in her server config settings to get this to work? What would be the syntax, and which config file would I change? web.xml? Ben --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---