| a | b | |
|---|
| 48 | 48 | | |
|---|
| 49 | 49 | | work flow : |
|---|
| 50 | 50 | | |
|---|
| ... | |
|---|
| 51 | | - | is the 'origins' section empty in ini ? |
|---|
| 51 | + | for /db resources, including system dbs, use the db _security object |
|---|
| 51 | + | for all other resources (e.g. /_uuids), use the ini configuration |
|---|
| 51 | + | is the 'origins' section empty or non-existant ? |
|---|
| ... | |
|---|
| 52 | 52 | | yes -> is admin party set ? |
|---|
| 53 | 53 | | yes -> return "*" , credentials false (with a good caching policy) |
|---|
| 54 | 54 | | no -> stop |
|---|
| ... | |
|---|
| 59 | 59 | | is Origin in 'origins[Host]' ? |
|---|
| 60 | 60 | | yes -> |
|---|
| 61 | 61 | | set the cors headers based on 'origins[Host]' |
|---|
| ... | |
|---|
| 62 | | - | are we on a db resource ? |
|---|
| 62 | | - | yes -> |
|---|
| 62 | | - | repeat 'apply cors steps' with the db _security object instead of the .ini |
|---|
| 62 | | - | no -> |
|---|
| 62 | | - | succeed |
|---|
| ... | |
|---|
| 67 | 67 | | no -> fail |
|---|
| 68 | 68 | | no -> |
|---|
| 69 | 69 | | <bikeshed defaults> |
|---|
| ... | |
|---|