From: shinn <shinnyx@gmail.com>
To: rack-devel@googlegroups.com
Subject: Re: How to use a rack middleware in rails application?
Date: Wed, 18 Apr 2012 21:11:10 -0700 (PDT) [thread overview]
Message-ID: <16441975.240.1334808670999.JavaMail.geo-discussion-forums@pbcuu8> (raw)
In-Reply-To: <3CB9A0D2-28B8-4E52-ACB3-9FA22656F724@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1132 bytes --]
Hi, thanks for your reply.
According to this source<https://developer.mozilla.org/en/HTTP_access_control>,
CORS will required the targeted domain (http://bar.other in this example)
to response with the "Access-Control-Allow-Origin".
This is the reason I'm not using CORS, because the targeted domain is not
belong to me, I've no way to add the "Access-Control-Allow-Origin" header
on its server. Correct me if I'm wrong.
On Thursday, April 19, 2012 6:09:45 AM UTC+8, raggi wrote:
>
>
> On Apr 18, 2012, at 6:10 AM, shinn wrote:
>
> 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<https://gist.github.com/206529>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=428
> http://www.google.com/search?q=CORS+on+rails
>
[-- Attachment #2: Type: text/html, Size: 1830 bytes --]
next prev parent reply other threads:[~2012-04-19 4:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-18 13:10 How to use a rack middleware in rails application? shinn
2012-04-18 22:09 ` James Tucker
2012-04-19 4:11 ` shinn [this message]
2012-04-20 19:58 ` James Tucker
2012-04-21 3:16 ` shinn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://groups.google.com/group/rack-devel
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16441975.240.1334808670999.JavaMail.geo-discussion-forums@pbcuu8 \
--to=rack-devel@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).