[
https://issues.apache.org/jira/browse/COUCHDB-867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12915989#action_12915989
]
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:
http://mail-archives.apache.org/mod_mbox/couchdb-user/200905.mbox/%[email protected]%3e
------------------------------------------------------
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: https://issues.apache.org/jira/browse/COUCHDB-867
> 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
> http://msdn.microsoft.com/en-us/library/cc838250%28v=VS.95%29.aspx#crossdomain_communication
> 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.