mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Update docs
This commit is contained in:
parent
418ad47361
commit
c838cf8d53
@ -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:
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user