CORS support for the sync gateway

92 views
Skip to first unread message

Seung Chan Lim

unread,
Feb 11, 2015, 3:38:07 PM2/11/15
to mobile-c...@googlegroups.com

Am I correct in saying that I can simply put the following to my config.json for sync gateway 1.0.0 and it will support CORS?


,"CORS": {

    "Origin": ["*"]

    ,"Headers": ["DNT","X-Mx-ReqToken","Keep-Alive","User-Agent","X-Requested-W\

ith","If-Modified-Since","Cache-Control","Content-Type"]

    ,"MaxAge":1728000



Jens Alfke

unread,
Feb 11, 2015, 4:29:20 PM2/11/15
to mobile-c...@googlegroups.com

On Feb 11, 2015, at 12:38 PM, Seung Chan Lim <djs...@gmail.com> wrote:

Am I correct in saying that I can simply put the following to my config.json for sync gateway 1.0.0 and it will support CORS?

No. CORS isn’t implemented yet; see issue #115.

Also, you should upgrade from 1.0.0, which has a number of serious known bugs. (You might want to wait a few days for 1.0.4 to be released.)

—Jens
Reply all
Reply to author
Forward
0 new messages