-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
In order to publish a CouchApp at the root of a domain, it is common to use a rewrite setup like this:
[
{ "from": "/", "to": "index.html"},
{ "from": "/mydb", "to": "../.." },
{ "from": "/mydb/*", "to": "../../*" }, // make the couch APIs for mydb available
{ "from": "/*", "to": "*" }
]
This works great, except in the case of attempting to append query string parameters for paths ending in /, where CouchDB interprets the request incorrectly, resulting in a 404 error.
Unfortunately, the _nonce query string parameter added in 203f204 for IE cache busting triggers this bug:
GET http://localhost:5984/mydb/?_nonce=7DOKWuVmw7TabIUY 404 (Object Not Found)
It's not really PouchDB's fault, but other people are likely to hit it so I wanted to call it out and then maybe we can find a work around.
Possible actions:
- Make sure there's a bug filed in CouchDB and if it is blocked see if it can be moved along
- Maybe somebody has a clever workaround?
Metadata
Metadata
Assignees
Labels
No labels