couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Desgranges (JIRA)" <>
Subject [jira] Commented: (COUCHDB-867) Add http handlers for root files with special meanings, such as crossdomain.xml.
Date Wed, 29 Sep 2010 01:01:33 GMT


Eric Desgranges commented on COUCHDB-867:

Someone found a hack by duplicating the code that handles the favicon.ico request. Could this
be in the next release?

Excerpt from this page:

While discussing problematic clients like Flash, couchdb's lack of 
support for the need of a crossdomain policy file for certain clients 
such as Flash and Silverlight had me tearing my hair out for awhile (I 
have been evaluating both, though have since tossed out Silverlight).  
The biggest problem is Silverlight, because it expects the crossdomain 
file to not only exist on the remote server, but also to exist through 
the same port (ie, 5984).  In the end, I got it working by duplicating 
the erlang code that handles favicon.ico requests to make a new handler 
for requests to /crossdomain.xml .  Rather fun, as it was my first 
exposure to erlang... but obviously very much a hack!

> Add http handlers for root files with special meanings, such as crossdomain.xml.
> --------------------------------------------------------------------------------
>                 Key: COUCHDB-867
>                 URL:
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 1.0.1
>            Reporter: Eric Desgranges
> Some files at the root level of a website have a special meaning, such as favicon.ico
storing the favorite icon, which is processed correctly in the [httpd_global_handlers] section
of the ini file with this instruction:
> favicon.ico = {couch_httpd_misc_handlers, handle_favicon_req, "../share/couchdb/www"}
> But this is the only one handled while other files, which are critical when to accessing
the CouchDB server from Flash, Flex, Silverlight..., are missing
> - crossdomain.xml (this one should be a top priority fix!)
> - clientaccesspolicy.xml -- See
> And there's also 'robots.txt' to prevent search engines from accessing some files / directories.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message