From c838cf8d53d15bc6fd572008bfd5cde7d47cdde8 Mon Sep 17 00:00:00 2001 From: Philipp Muens Date: Thu, 25 Apr 2019 12:26:51 +0200 Subject: [PATCH] Update docs --- docs/providers/aws/events/apigateway.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/providers/aws/events/apigateway.md b/docs/providers/aws/events/apigateway.md index be114c38e..7ee566784 100644 --- a/docs/providers/aws/events/apigateway.md +++ b/docs/providers/aws/events/apigateway.md @@ -257,7 +257,7 @@ functions: allowCredentials: false ``` -Wildcards are accepted, so +Wildcards are accepted. The following example will match all sub-domains of example.com over http: ```yml cors: @@ -265,7 +265,6 @@ Wildcards are accepted, so - http://*.example.com - http://example2.com ``` -will match all sub-domains of example.com, over http Please note that since you can't send multiple values for [Access-Control-Allow-Origin](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Origin), this configuration uses a response template to check if the request origin matches one of your provided `origins` and overrides the header with the following code: