Skip to content

Instantly share code, notes, and snippets.

@9oelM

9oelM/block50.ts Secret

Created March 21, 2021 13:44
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 9oelM/c98db1ce8fb9c419a2d46a5b376b5070 to your computer and use it in GitHub Desktop.
Save 9oelM/c98db1ce8fb9c419a2d46a5b376b5070 to your computer and use it in GitHub Desktop.
import {
APIGatewayProxyEvent,
APIGatewayProxyResult
} from "aws-lambda";
export const handler = async (
event: APIGatewayProxyEvent
): Promise<APIGatewayProxyResult> => {
return {
+ headers: {
+ "Access-Control-Allow-Origin": "*",
+ },
statusCode: 200,
body: `hello`
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment