@@ -1344,9 +1344,9 @@ type HTTPCORSFilter struct {
1344
1344
// Therefore, the client doesn't attempt the actual cross-origin request.
1345
1345
//
1346
1346
// The `Access-Control-Allow-Origin` response header can only use `*`
1347
- // wildcard as value when the `AllowCredentials` field is unspecified .
1347
+ // wildcard as value when the `AllowCredentials` field is false or omitted .
1348
1348
//
1349
- // When the `AllowCredentials` field is specified and `AllowOrigins` field
1349
+ // When the `AllowCredentials` field is true and `AllowOrigins` field
1350
1350
// specified with the `*` wildcard, the gateway must return a single origin
1351
1351
// in the value of the `Access-Control-Allow-Origin` response header,
1352
1352
// instead of specifying the `*` wildcard. The value of the header
@@ -1361,12 +1361,12 @@ type HTTPCORSFilter struct {
1361
1361
// AllowCredentials indicates whether the actual cross-origin request allows
1362
1362
// to include credentials.
1363
1363
//
1364
- // The only valid value for the `Access-Control-Allow-Credentials` response
1365
- // header is true (case-sensitive).
1364
+ // When set to true, the gateway will include the `Access-Control-Allow-Credentials`
1365
+ // response header with value true (case-sensitive).
1366
1366
//
1367
- // If the credentials are not allowed in cross-origin requests, the gateway
1368
- // will omit the header `Access-Control-Allow-Credentials` entirely rather
1369
- // than setting its value to false .
1367
+ // When set to false or omitted the gateway will omit the header
1368
+ // `Access-Control-Allow-Credentials` entirely (this is the standard CORS
1369
+ // behavior) .
1370
1370
//
1371
1371
// Support: Extended
1372
1372
//
@@ -1400,9 +1400,9 @@ type HTTPCORSFilter struct {
1400
1400
// side.
1401
1401
//
1402
1402
// The `Access-Control-Allow-Methods` response header can only use `*`
1403
- // wildcard as value when the `AllowCredentials` field is unspecified .
1403
+ // wildcard as value when the `AllowCredentials` field is false or omitted .
1404
1404
//
1405
- // When the `AllowCredentials` field is specified and `AllowMethods` field
1405
+ // When the `AllowCredentials` field is true and `AllowMethods` field
1406
1406
// specified with the `*` wildcard, the gateway must specify one HTTP method
1407
1407
// in the value of the Access-Control-Allow-Methods response header. The
1408
1408
// value of the header `Access-Control-Allow-Methods` is same as the
@@ -1442,9 +1442,9 @@ type HTTPCORSFilter struct {
1442
1442
//
1443
1443
// A wildcard indicates that the requests with all HTTP headers are allowed.
1444
1444
// The `Access-Control-Allow-Headers` response header can only use `*`
1445
- // wildcard as value when the `AllowCredentials` field is unspecified .
1445
+ // wildcard as value when the `AllowCredentials` field is false or omitted .
1446
1446
//
1447
- // When the `AllowCredentials` field is specified and `AllowHeaders` field
1447
+ // When the `AllowCredentials` field is true and `AllowHeaders` field
1448
1448
// specified with the `*` wildcard, the gateway must specify one or more
1449
1449
// HTTP headers in the value of the `Access-Control-Allow-Headers` response
1450
1450
// header. The value of the header `Access-Control-Allow-Headers` is same as
@@ -1487,8 +1487,7 @@ type HTTPCORSFilter struct {
1487
1487
//
1488
1488
// A wildcard indicates that the responses with all HTTP headers are exposed
1489
1489
// to clients. The `Access-Control-Expose-Headers` response header can only
1490
- // use `*` wildcard as value when the `AllowCredentials` field is
1491
- // unspecified.
1490
+ // use `*` wildcard as value when the `AllowCredentials` field is false or omitted.
1492
1491
//
1493
1492
// Support: Extended
1494
1493
//
0 commit comments