Update docs

This commit is contained in:
Philipp Muens 2019-04-25 12:26:51 +02:00
parent 418ad47361
commit c838cf8d53

View File

@ -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: