Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8637715
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:32:38+00:00 2026-06-12T10:32:38+00:00

I am trying to replicate data from CouchDB to PouchDB for offline storage using

  • 0

I am trying to replicate data from CouchDB to PouchDB for offline storage using the code to pull data from CouchDB:

db.replicate.from('http://test.iriscouch.com/todo','idb://todo', function (err, changes) {
if (err) {
    console.log(err);
}
else {
    console.log(changes);
}});
$scope.loadTodos(response.rows);

I get these errors:

  • Failed to load resource: the server responded with a status of 405
    (Method Not Allowed)
  • XMLHttpRequest cannot load http://test.iriscouch.com/todo/. Origin
    null is not allowed by Access-Control-Allow-Origin.
  • Uncaught TypeError: Cannot call method ‘id’ of undefined

Is there something I’m not doing correct?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T10:32:39+00:00Added an answer on June 12, 2026 at 10:32 am

    For PouchDB to communicate with CouchDB it either needs to be running on the same domain or you need to install a CORS-Proxy between Pouch and Couch, this is due to the same origin policy enforced by the browser, the next release of CouchDB will hopefully support this natively but in the meantime for a production site I would find it easiest to use nginx to have pouch and couch run off the same domain

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am trying to replicate data between two local database instance http://wiki.apache.org/couchdb/How_to_replicate_a_database As per
I am trying to use the Store Locator plugin from google developer: http://storelocator.googlecode.com/git/index.html?utm_campaign=sl&utm_source=youtube I
I am trying to retrieve data from an SQL server using pyodbc and print
I am using this plugin from Get Hifi in my code. I am trying
I need to replicate in CouchDB data from one database to another but in
I'm coming from webforms, and I'm trying to replicate a simple data model in
Im trying to replicate an effect as seen on http://www.fiat.co.uk/Showroom/#showroom/punto_evo/explore . I have made
Im trying to replicate the following sql in Nhibernate ICriteria SELECT DISTINCT AP.ID FROM
I am trying to replicate a table produced from a sybase database, I dont
I am trying to replicate what my C# / XPath code does on Linux

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.