Skip to content

Commit 96a7ef8

Browse files
committed
docs: add AddDefaultAuthorizerToCorsPreflight property
1 parent f61e707 commit 96a7ef8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

versions/2016-10-31.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,12 +792,13 @@ Cors:
792792
Configure Auth on APIs.
793793

794794
**Authorizers:**
795-
Define Lambda and Cognito `Authorizers` and specify a `DefaultAuthorizer`. If you use IAM permission, only specify `AWS_IAM` to a `DefaultAuthorizer`. For more information, see the documentation on [Lambda Authorizers](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-use-lambda-authorizer.html) and [Amazon Cognito User Pool Authorizers](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-integrate-with-cognito.html) and [IAM Permissions](https://docs.aws.amazon.com/apigateway/latest/developerguide/permissions.html).
795+
Define Lambda and Cognito `Authorizers` and specify a `DefaultAuthorizer`. If you use IAM permission, only specify `AWS_IAM` to a `DefaultAuthorizer`. For more information, see the documentation on [Lambda Authorizers](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-use-lambda-authorizer.html) and [Amazon Cognito User Pool Authorizers](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-integrate-with-cognito.html) and [IAM Permissions](https://docs.aws.amazon.com/apigateway/latest/developerguide/permissions.html).
796796

797797
```yaml
798798
Auth:
799799
ApiKeyRequired: true # OPTIONAL
800800
DefaultAuthorizer: MyCognitoAuth # OPTIONAL, if you use IAM permissions, specify AWS_IAM.
801+
AddDefaultAuthorizerToCorsPreflight: false # OPTIONAL; Default: true
801802
# For AWS_IAM:
802803
# DefaultAuthorizer: AWS_IAM
803804
# InvokeRole: NONE # CALLER_CREDENTIALS by default unless overridden

0 commit comments

Comments
 (0)