Hello guys !

Thanks to Mario guidelines, it works !
My problem was CORS. It was enabled on my couchDB server but not with the 
right permissions.
 

https://pouchdb.com/getting-started.html#enabling_cors 
Basically this part: 

  npm install -g add-cors-to-couchdb
  add-cors-to-couchdb

Or if your database is not at 127.0.0.1:5984:

$ add-cors-to-couchdb http://me.example.com -u myusername -p mypassword


I worked on ubuntu server 14.04. The script add-cors-to-couchdb doesn't 
work but we can change the options in /etc/couchdb/default.ini

[httpd]
enable_cors = true

[cors]
credentials = true
; List of origins separated by a comma, * means accept all
; Origins must include the scheme: http://example.com
; You can’t set origins: * and credentials = true at the same time.
origins = *
; List of accepted headers separated by a comma
headers = accept, authorization, content-type, origin, referer, x-csrf-token
; List of accepted methods
methods = GET, PUT, POST, HEAD, DELETE

I just have to play with it now!!!

 

> Best regards,
> Stephane 
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/797ea5c4-bd6c-4db8-bca4-bd7b4c11fe2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to