403 forbidden from Riak 1.2.0 when referer header is set

Douglas Muth doug.muth at gmail.com
Wed Aug 15 09:54:45 EDT 2012


On Wed, Aug 15, 2012 at 8:24 AM, Fredrik Lindström
<Fredrik.Lindstrom at qbranch.se> wrote:
>
> I found this while digging around:
> https://github.com/basho/riak_kv/commit/3cd75e76c20b77dec2be0cb36892f5cc79dbec0b
> "Validate that the Referer matches up with scheme, host and port of the
> machine that received the request"
>
> Since the referer (http://mysupderduperwebapp.xyz/snazzypage.html) will not
> match the scheme, host and port of the riak node that received the request
> no image will be served.
> Is there any way to configure riak 1.2.0 to allow any referer header value?
>

If you're running requests to Riak through a firewall/proxy, why not
rewrite the Referrer header there?  In nginx, it'd be something like
this:

proxy_set_header Referer http://nginx.localdomain/keyspace...;

-- Doug
http://www.dmuth.org/




More information about the riak-users mailing list