Details
-
New Feature
-
Resolution: Unresolved
-
Major
-
None
-
3.0.x, 3.1.x
-
None
Description
As of Sync Gateway 3.0.6, 3.1.1 and 3.2.0, modifying CORS config is allowed per database configuration with the cors parameter. CBG-2807. The rules are the same as per bootstrap configuration except that max_age does not apply:
cors: {
|
headers: [
|
"string" |
],
|
login_origin: [
|
"string" |
],
|
origin: [
|
"string" |
]
|
},
|
If the request is successfully authorized as a user and is database scoped, the database level configuration is used, otherwise the request will use the values in the bootstrap config.