-
-
Save 9oelM/c98db1ce8fb9c419a2d46a5b376b5070 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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