Skip to content

Instantly share code, notes, and snippets.

@gahabeen
Created September 3, 2018 11:31
Show Gist options
  • Save gahabeen/c4a5538700b80d34a490439b3244ab91 to your computer and use it in GitHub Desktop.
Save gahabeen/c4a5538700b80d34a490439b3244ab91 to your computer and use it in GitHub Desktop.
Where am I wrong? CORS with Serverless with Spotinst
[...]
functions:
aFunctionName:
runtime: nodejs8.3
handler: handler.fn
memory: 128
timeout: 30
access: public
endpoint:
path: /path/fn
method: post
cors:
- enabled: true
origin: "*"
headers: "Content-Type,Authorization"
methods: "GET,POST"
[...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment