Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-11019

Sync Gateway: Per Database CORS configuration

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Unresolved
    • Major
    • None
    • 3.0.x, 3.1.x
    • sync-gateway
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            elliot.hunter Elliot Hunter
            tor.colvin Tor Colvin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty