github.com/avenga/couper@v1.12.2/server/testdata/integration/config/06_couper.hcl (about) 1 server "cors" { 2 access_control = ["ba"] 3 4 files { 5 document_root = "./" 6 cors { 7 allowed_origins = "a.com" 8 allow_credentials = true 9 } 10 } 11 12 spa { 13 paths = ["/spa"] 14 bootstrap_file = "06_couper.hcl" 15 cors { 16 allowed_origins = "b.com" 17 allow_credentials = true 18 } 19 } 20 21 api { 22 base_path = "/api" 23 cors { 24 allowed_origins = "c.com" 25 allow_credentials = true 26 } 27 endpoint "/" { 28 response {} 29 } 30 } 31 } 32 definitions { 33 basic_auth "ba" { 34 user = "foo" 35 password = "asdf" 36 } 37 }