From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.229.201.42 with SMTP id ey42csp187481qcb; Wed, 18 Apr 2012 15:09:54 -0700 (PDT) Return-Path: Received-SPF: pass (google.com: domain of rack-devel+bncCP_V2_zRBRCu97z8BBoEw9eJEQ@googlegroups.com designates 10.68.230.201 as permitted sender) client-ip=10.68.230.201; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCP_V2_zRBRCu97z8BBoEw9eJEQ@googlegroups.com designates 10.68.230.201 as permitted sender) smtp.mail=rack-devel+bncCP_V2_zRBRCu97z8BBoEw9eJEQ@googlegroups.com; dkim=pass header.i=rack-devel+bncCP_V2_zRBRCu97z8BBoEw9eJEQ@googlegroups.com Received: from mr.google.com ([10.68.230.201]) by 10.68.230.201 with SMTP id ta9mr4142756pbc.18.1334786993613 (num_hops = 1); Wed, 18 Apr 2012 15:09:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:from:mime-version:subject:date:in-reply-to :to:references:message-id:x-mailer:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=AdxYuAkyaL2rkbnYDMGu3evQ+ldjGF2sMBHWTeTKsi4=; b=K2iaD4fdxeI2OAocJoKxWk44/Hs+kymMB5aRZ/TXtRR2JGLhHE7oW+0JzAfIpfVvyB 82452j3FVGnR4n8wfs+iig+sOCMBK+GdmO5i/UUsQJTv+NCY3OD10Syc0FefW5v/qmBy xCyLIwAep2N4PI4NIW+NYpvt1dZAigQJSBvok= Received: by 10.68.230.201 with SMTP id ta9mr1103788pbc.18.1334786990726; Wed, 18 Apr 2012 15:09:50 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.68.136.230 with SMTP id qd6ls4291812pbb.2.gmail; Wed, 18 Apr 2012 15:09:49 -0700 (PDT) Received: by 10.68.202.37 with SMTP id kf5mr3735797pbc.7.1334786989362; Wed, 18 Apr 2012 15:09:49 -0700 (PDT) Received: by 10.68.202.37 with SMTP id kf5mr3735796pbc.7.1334786989349; Wed, 18 Apr 2012 15:09:49 -0700 (PDT) Received: from mail-pb0-f52.google.com (mail-pb0-f52.google.com [209.85.160.52]) by gmr-mx.google.com with ESMTPS id rq3si449757pbb.1.2012.04.18.15.09.49 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 Apr 2012 15:09:49 -0700 (PDT) Received-SPF: pass (google.com: domain of jftucker@gmail.com designates 209.85.160.52 as permitted sender) client-ip=209.85.160.52; Received: by pbcuo15 with SMTP id uo15so12314786pbc.39 for ; Wed, 18 Apr 2012 15:09:49 -0700 (PDT) Received: by 10.68.225.104 with SMTP id rj8mr9590330pbc.135.1334786989036; Wed, 18 Apr 2012 15:09:49 -0700 (PDT) Received: from [10.0.1.21] (c-67-180-21-214.hsd1.ca.comcast.net. [67.180.21.214]) by mx.google.com with ESMTPS id q5sm299138pbp.28.2012.04.18.15.09.46 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 18 Apr 2012 15:09:47 -0700 (PDT) From: James Tucker Mime-Version: 1.0 (Apple Message framework v1257) Subject: Re: How to use a rack middleware in rails application? Date: Wed, 18 Apr 2012 15:09:45 -0700 In-Reply-To: <19957665.775.1334754612976.JavaMail.geo-discussion-forums@pbcuc9> To: rack-devel@googlegroups.com References: <19957665.775.1334754612976.JavaMail.geo-discussion-forums@pbcuc9> Message-Id: <3CB9A0D2-28B8-4E52-ACB3-9FA22656F724@gmail.com> X-Mailer: Apple Mail (2.1257) X-Original-Sender: jftucker@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jftucker@gmail.com designates 209.85.160.52 as permitted sender) smtp.mail=jftucker@gmail.com; dkim=pass header.i=@gmail.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: X-Google-Group-Id: 486215384060 List-Post: , List-Help: , List-Archive: Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: multipart/alternative; boundary="Apple-Mail=_217F8220-6F5F-41EC-9997-E5912A4A0544" --Apple-Mail=_217F8220-6F5F-41EC-9997-E5912A4A0544 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Apr 18, 2012, at 6:10 AM, shinn wrote: > Hi all, >=20 > I'm currently developing a rails app that required to do cross side = scripting with ajax. I've been google around and found this rack = middleware that used rack on doing proxy. However I have no idea on how = to use it in my app. Please help, I'm using Rails 3.2.3. Thanks! http://guides.rubyonrails.org/rails_on_rack.html It sounds like you probably want CORS though, not a proxy. http://blog.davelyon.net/cross-origin-resource-sharing-on-rails http://www.tsheffler.com/blog/?p=3D428 http://www.google.com/search?q=3DCORS+on+rails= --Apple-Mail=_217F8220-6F5F-41EC-9997-E5912A4A0544 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Hi = all,

I'm currently developing a rails app that required to do = cross side scripting with ajax. I've been google around and found this rack middleware that = used rack on doing proxy. However I have no idea on how to use it in my = app. Please help, I'm using Rails 3.2.3. = Thanks!


It sounds = like you probably want CORS though, not a = proxy.

http://www.tsheffler.com/b= log/?p=3D428= --Apple-Mail=_217F8220-6F5F-41EC-9997-E5912A4A0544--