From cd03d1c0e5ab25e25c9257a80773772132aa3e44 Mon Sep 17 00:00:00 2001 From: Jon Fairbanks Date: Mon, 14 Oct 2024 21:57:21 -0700 Subject: [PATCH] Fix Status Code --- .tf/main.tf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.tf/main.tf b/.tf/main.tf index 4144ae3..20384dd 100644 --- a/.tf/main.tf +++ b/.tf/main.tf @@ -187,7 +187,10 @@ resource "aws_api_gateway_method_response" "yo_api_catch_all_method_response" { rest_api_id = aws_api_gateway_rest_api.yo_api.id resource_id = aws_api_gateway_resource.yo_api_catch_all.id http_method = aws_api_gateway_method.yo_api_catch_all_method.http_method - status_code = "404" + status_code = "200" + response_parameters = { + "method.response.header.Access-Control-Allow-Origin" = true + } } /* ------------------------- */