Skip to content

Instantly share code, notes, and snippets.

@richardgrantserverless
Created April 20, 2022 02:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardgrantserverless/bae60e29f61cd5e8d464404b5cd571a3 to your computer and use it in GitHub Desktop.
Save richardgrantserverless/bae60e29f61cd5e8d464404b5cd571a3 to your computer and use it in GitHub Desktop.
functions:
hello:
handler: handler.hello
url:
# Allow CORS for all requests from any origin
cors: true
world:
handler: handler.hello
url:
# Configure CORS in details:
cors:
allowCredentials: …
allowedHeaders: …
allowedMethods: …
allowedOrigins: …
exposedResponseHeaders: …
maxAge: ….
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment