I am having troubles setting up CORs support on my sync gateway. I've 
swapped out my real domain name with xxx for posting purposes.

On my SG server (https://db.xxx.com), I added the following to my 
config.json:

"CORS": {

                "origin":["https://webclient.xxx.com";],

                "loginOrigin":["https://webclient.xxx.com";],

                
"headers":["DNT","X-CustomHeader","Keep-Alive","User-Agent","X-Requested-With","If-Modified-Since","Cache-Control","Content-Type","Authorization"],

                "maxAge": 1728000

        }



My web server (https://webclient.xxx.com) is Nginx.


I am getting the following error:


XMLHttpRequest cannot load 
https://db.xxx.com/xxxdb/-9t43hswLaiNa3qymE7MU9U. Response to preflight 
request doesn't pass access control check: No 'Access-Control-Allow-Origin' 
header is present on the requested resource. Origin 
'https://webclient.xxx.com' is therefore not allowed access.


Am I missing something?


Sync Gateway is built from master.


Todd


-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/1fa5ec66-cbfa-4740-a2f1-95e6ac36515c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to