mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
formatting
This commit is contained in:
parent
c4c0dc8e02
commit
d4598f758f
@ -15,7 +15,7 @@ Cross-Origin Resource Sharing is a mechanism that allows restricted resources on
|
||||
|
||||
You can enable CORS for cross-domain HTTP requests with Spotinst Functions. Add the required fields to you serverless.yml file.
|
||||
|
||||
Example CORS object:
|
||||
### Example CORS object:
|
||||
```yml
|
||||
cors:
|
||||
- enabled: true
|
||||
@ -24,7 +24,7 @@ Example CORS object:
|
||||
methods: "PUT,POST"
|
||||
```
|
||||
|
||||
Parameters:
|
||||
### Parameters:
|
||||
- enabled: Boolean
|
||||
- Specify if CORS is enabled for the function.
|
||||
- default: false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user